Note that there are some explanatory texts on larger screens.

plurals
  1. POFile upload dialog not shown
    primarykey
    data
    text
    <p>I am facing a problem when uploading a file. When I click on the ClickMe button, the dialog confirm is showing. When I click the OK button, the upload file dialog is not shown. If I run the code in the console, the upload file dialog is shown. Here is my source code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/dark-hive/jquery-ui.css" /&gt; &lt;script type="text/javascript"&gt; function showUpload() { $("#tpl_file").click(); }; $(document).ready(function(){ $("#verify_dialog").dialog({ "autoOpen": false, "modal": true, "buttons": [{ "id":"btn_okdialog", "text": "yes", "click": function() { showUpload(); } }, { "id":"btn_cancedialog", "text": "no", "click": function() { $(this).dialog("close"); } } ] }); $("#ClickMe").button(); $("#ClickMe").click(function(){ $("#verify_dialog").dialog("open"); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;button title="ClickMe" id="ClickMe"&gt;ClickMe&lt;/button&gt; &lt;input type="file" name="tpl_file" id="tpl_file"&gt; &lt;div id="verify_dialog" style="display:none;" title="verify_dialog"&gt; &lt;div id="message"&gt;are you sure?&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Can you help identify the error?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload