Loading URL into iframe_ARG!
In a nutshell, the problem is:
In Safari, we cant get the iframe to reload; all we see is the erroneous initial load of the URL. However, if we force a reload of the URL outside of our website, i.e. in it’s own browser window, and then come back to our website, it works, presumably since safari has cached the url and has it onhand.
In IE, we see nothing. Blank iframe, also not responding to our forced reload.
Here’s the javascript.
function cred_mi()
{
//this is the second loading of the iframe source, the first load happens in the html
$(‘#lightbox_iframe’).attr(‘src’, ‘https://www2.dleg.state.mi.us/colaLicVerify/controller?searchType=detail&entityId=1240913&l2K= Y&licNbr=2101101211&licId=946445&detailType=Indivi dual’);
//other lightbox function handling
$(‘#control’).empty().html(‘<a class="np" href="javascript:turnOff()">Close</a>’);
$(‘#lightbox_img’).css(‘display’, ‘none’);
$(‘#lightbox_p’).empty();
//display lightbox and iframe
$(‘#lightbox’).fadeIn(500);
$(‘#scrim’).fadeTo(500, 0.5);
$(‘#lightbox_iframe’).css(‘visibility’, ‘visible’);
//wait for all above to finish, and then force a reload.
$(document).ready(function(){window.frames(‘lightb ox_iframe’).reload(true);});
}
View full post on Webmaster-Talk.com
iframe_ARG, into, Loading