I'm having a problem with some javascript code in IE. In IE 7, it only happens when I refresh the page. It happens on page load in IE 6. Looks fine in FF and Safari. How do I figure out why this is happening?
| SitePoint Sponsor |





I'm having a problem with some javascript code in IE. In IE 7, it only happens when I refresh the page. It happens on page load in IE 6. Looks fine in FF and Safari. How do I figure out why this is happening?



DebugBar is something to consider in IE...
http://www.debugbar.com/?langage=en
FOR SALE: 1 set of morals, never used, will sell cheap





Thanks for that link. Unfortunately, it never detects the javascript. It just displays document downloading the entire time. Other pages show up fine in the debugbar. Is it possible that IE isn't even reading my code? Here's the two lines that cause it to load
Code:<script src="/blogs/js/prototype.js"></script> <script src="/blogs/js/modal.js"></script>



Try adding the type and the language attribute:
Code:<script language="javascript" type="text/javascript" src="myJS.js"></script>
FOR SALE: 1 set of morals, never used, will sell cheap





Yeah, after I submitted that post, I decided to validate the page before going any further. I did the above among several other corrections. Still no go. The debugbar works on the page now too, but doesn't show any errors. I'm still unsure how I can figure out what's going wrong on IE that's not on several other browsers.
Bookmarks