Note that there are some explanatory texts on larger screens.

plurals
  1. POPopup Jquery is working in all browsers but IE7
    primarykey
    data
    text
    <p>I've written a script where on click the jquery loads html into a the current page. However this works fine on all browsers but IE 7, I am extremely confused why this might be. The buttons are the information and contact buttons in the top right of the page. </p> <p><a href="http://madaxedesign.co.uk/" rel="nofollow">http://madaxedesign.co.uk/</a></p> <p>Jquery:</p> <pre><code> $(document).ready(function() { // INFORMATION PAGE $('a.info , a.info_footer').click(function() { $("html, body").animate({ scrollTop: 0 }, 600); $("#popup").load("/info.html"); // Getting the variable's value from a link var show = $('#popup').css('display', 'block'), popup = $(this).attr('href'); //Fade in the Popup and add close button $(popup).fadeIn(300); //Set the center alignment padding + border var popMargTop = ($(popup).height() + 24) / 2; var popMargLeft = ($(popup).width() + 24) / 2; $(popup).css({ 'margin-top' : -popMargTop, 'margin-left' : -popMargLeft }); // Add the mask to body $('body').append('&lt;div id="mask"&gt;&lt;/div&gt;'); $('#mask').fadeIn(300); return false; }); // When clicking on the button close or the mask layer the popup closed $('#popup').on('click', '.cross', function() { $('#mask , #popup').fadeOut(300 , function() { $('#mask').remove(); }); return false; }); // CONTACT FORM PAGE $('a.contact , a.contact_footer, a.contact_text').click(function() { $("html, body").animate({ scrollTop: 0 }, 600); $("#popup").load("/contact.php"); // Getting the variable's value from a link var show = $('#popup').css('display', 'block'), popup = $(this).attr('href'); //Fade in the Popup and add close button $(popup).fadeIn(300); // Add the mask to body $('body').append('&lt;div id="mask"&gt;&lt;/div&gt;'); $('#mask').fadeIn(300); return false; }); }); </code></pre> <p>HTML:</p> <pre><code>&lt;div id="popup" class="corners"&gt; &lt;/div&gt; </code></pre> <p>This is where the code gets loaded into. Only in IE 7 a mask covers the pop up with a black screen. If anyone has had a similar problem I would love to understand why this happens in only IE 7</p> <p>Thanks</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