Home  »  Solutions  »  What I've Learned  »  When dynamically generating iFrames in IE6 and SSL, their lo...

When dynamically generating iFrames in IE6 and SSL, their location must be preloaded

Nate Weiner - Posted in What I've Learned, , , , , Comments (1)

I had a script that was creating empty iFrames serving as an Ajax method. But in IE6, I kept receiving a ‘mixed secure and insecure content’ warning. Combing through my source code I couldn’t find what element wasn’t being loaded without https. Well I finally Google’d the problem and found the answer. When I was creating the iFrames, I created them first and then set the src value. I discovered however you need to set the iFrame’s src value upon creation with a secure page. If you need a temporary location to point to before loading without an extra page request, you can enter ‘javascript:false’.

Where I learned about it:
http://crazybob.org/2005/06/ajax-ie-iframe-bug.html

Comments (1)


  1. This fix saved me a lot of time - thanks.

    March 28th, 2008 Scott

Leave a Reply