• Sign In

Technology?

A site for testing the new tools I'm building, and a little talk about what I'm learning on the way.

Search
  • Home
  • TechnologyView my occasional technology posts.
  • Life
  • Contact
Edit - Delete
Back and NextBack and Next - Back and Next
« Flash IO Error #2038 when Uploading File...
Javascript Replace All with Variable »
Edit - Delete
Show Media ItemShow Media Item - Javascript DOM Ready for SSL in IE

Javascript DOM Ready for SSL in IE

Wednesday, December 30, 2009
Many of the existing javascripts snippets you see on the internet to determine whether the DOM is fully loaded do not work properly in Internet Explorer when using the HTTPS secure protocol.  The "normal" script is as follows and works great for HTTP but will throw unsecure item warnings in IE because it adds a script element to the page.  Here is the updated script which works with both secure and unsecure connections:

Edit - Delete
CommentsComments - Comments
Comments
 
Rez - Toronto, Ontario - Wednesday, March 02, 2011 9:29 PM
Nicely done! How did you figure this out? Using "//:" is simply an empty protocol domain and port isn't it? I would have thought it would raise an error.
Paul - San Jose, California - Thursday, March 31, 2011 6:23 PM
Joshua -
Thanks for this! Really saved my butt. Just curious though.. Is the check for https really necessary? Would there be a problem just setting the script src attribute to //: even for http?

Your Comment

Your Name

Your Location

To receive emails create a username or Sign In
Your Email
Username
Password
Confirm Password
Add me to the contact list.
Remember me on this computer.
Sign in below or Sign Up
Username
Password
loading...  Post Comment
 
Edit - Delete
Related TopicsRelated Topics - Related Topics
Related Topics
javascript
Edit - Delete
Media ActionsMedia Actions - Media Actions
Media Actions
0
Promote
Email to a friend
Inquire
Save to delicious
Digg this
Stumble it
Edit - Delete
See AlsoSee Also - See Also
See Also

Try Lara

Build your own website with Lara.  A powerful content management system with easy and fun to use design tools. 

Visit http://getlara.com to learn more.

Go here for a good Javascript Html Editor.

Subscribe Now

Recent Posts

  • Ultimate Frisbee Mauritius
  • The best free icon collection on the internet - Icons Etc.
  • VGA Planets "Nu" - The official VGA Planets remake
  • Sending Email from Amazon EC2
  • Using SSL (https) with Mono HTTPListener
  • .NET MimeTypes Class in C#
  • Great WordPress Plugins
  • Flash IO Error #2038 when Uploading Files in .NET
  • Javascript DOM Ready for SSL in IE
  • Javascript Replace All with Variable
Website created with Lara by Geographical Media