Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery modal windows - closing frustrations with greybox and jqmodal
    primarykey
    data
    text
    <p>I've been trying to get modal windows working on a new site for some time now. I first tried jqmodal and had no issues displaying the modals, but the close buttons never worked - or at least they worked on some pages but not on others. I put a great deal of effort into debugging and couldn't find the issue.</p> <p>I recently tried out greybox to see if I had better luck, but ran into a very similar issue. The close button at the top-right works fine, but I can't make a button within the modal that acts as a close. I've tried:</p> <pre><code>onclick="parent.parent.GB_hide();" </code></pre> <p>and similar variants but they just load whatever href is set to within the modal. However, if I do:</p> <pre><code>onclick="top.window.location.href='www.google.com'; parent.parent.GB_hide();" </code></pre> <p>this will close the modal and open Google, as intended. What I can't figure out is why I can't make a button that will just plain close it.</p> <p>I feel like I'm missing something pretty fundamental since I keep running into similar issues. Incidentally the site is written in ASP.NET MVC with jquery and I'm primarily testing on Firefox right now.</p> <p>I also realize this question is a bit vague, so I appreciate any thoughts and can supply more info if requested. Thanks in advance!</p> <p><strong>Edit:</strong> I still have no idea how to proceed. Nick's ideas were well taken but I see no Javascript errors on the page with either Firebug or Venkman. As far as I can tell the window should be closing.</p> <p>Why would the second 'onclick' event above work, but not the second?</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.
    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