I was working on a redesign of my company's website when I noticed that we had
a problem in IE when loading up a page via HTTPS. I would get an error warning
me that some items on the page were insecure (loading up via HTTP, not HTTPS).
After noticing that none of the images on my page were causing the error and
noticing that the error went away when I disabled JavaScript, I commented out
all of my script blocks. Then I added them back in one at a time until the
error returned. Lo and behold, it was JQuery. Specifically, it's this line:
// If IE is used, use the excellent hack by Matthias Miller
//
http://www.outofhanwell.com/blog/index.php?title=the_window_onload_problem_revisited
} else if ( jQuery.browser == "msie" ) {
// Only works if you document.write() it
document.write("<scr" + "ipt id=__ie_init defer=true " +
"src=javascript:void(0)><\/script>");
// Use the defer script hack
var script = document.getElementById("__ie_init");
script.onreadystatechange = function() {
if ( this.readyState == "complete" )
jQuery.ready();
};
// Clear from memory
script = null;
If I comment out from "document.write" to "script = null;" then the page loads
fine. If I don't, I get the mixed secure/insecure error. Is there any way to
fix this problem?
Thanks,
-Jason Levine
Webmaster, Northeast Health
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/