Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If I read your issue right, you simply are having problems closing the modal dialog.</p> <p>I just put together an example using jqModal:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;script src="Scripts/jquery-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Scripts/tmp/jqModal.js" type="text/javascript"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; .jqmWindow { display: none; position: fixed; top: 17%; left: 50%; margin-left: -300px; width: 600px; background-color: #EEE; color: #333; border: 1px solid black; padding: 12px; } .jqmOverlay { background-color: #000; } .jqmWindow { position: absolute; } &lt;/style&gt; &lt;script type="text/javascript"&gt; $().ready(function() { $('#dialog').jqm(); $('#jqmOpen').click(function() { $('#dialog').jqmShow(); return false; }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="#" id="jqmOpen" name="jqmOpen"&gt;Open&lt;/a&gt; &lt;div class="jqmWindow" id="dialog"&gt; &lt;a href="#" class="jqmClose"&gt;Close&lt;/a&gt; &lt;input type="button" class="jqmClose" value="Close" id="jqmCloseBtn" name="jqmCloseBtn" /&gt; Some text in the modal dialog &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I have put both a hyperlink and a button just for example. It appears that jqModal needs/looks for the class to attach the close trigger.</p> <p><strong>EDIT:</strong></p> <p>I just tried your exact code from above and I didn't get a JavaScript error but also nothing happened, which is to be expected as my code does not know what GB_hide() is. So this got me thinking.</p> <p>Is the button your clicking on like:</p> <pre><code>&lt;input type="button" value="Close" id="Button1" name="Button1" onclick="parent.parent.GB_hide();" /&gt; </code></pre> <p>If so what is parent.parent.GB_hide()? Could GB_hide() be a function your are not implementing on this page. </p> <p>Firebug shows me that parent.parent is the Window, so after putting:</p> <pre><code>&lt;script type="text/javascript"&gt; function GB_hide() { alert('Close'); } &lt;/script&gt; </code></pre> <p>on the page I now get an alert displayed.</p>
 

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