I am experiencing “Stack Overflow at the Line#1” and “A script on this page is causing Internet explorer to run slowly” while opening my application in the Internet explorer(Version 6).
Subject: I am experiencing “Stack Overflow at the Line#1” while opening my application in the Internet explorer.
I hate to be the bearer of bad news, but the error may be coming from almost anywhere in your JavaScript. The JScript engine in Internet Explorer is extremeley vulnerable to parsing errors, so even if your code is technically correct, IE may throw a bit of a tantrum if the code is spread out all over the page – and the built-in error console is a little bit worse than useless as a debugging aid.
Try consolidating your code into the JS Header (or into a JS library). Make sure your local events (button onclicks, image onmouseovers, and so forth) never do more than “return(myFunction(‘param’))”. When the code is all in one location, IE gets a little bit happier. That’s not to say that you can fix bad code this way, but you CAN fix IE’s handling of code that ought to work.
Oh – you might want to start using Firebug Lite for IE, too, as well as testing code in Firefox (with or without Firebug). Please note, though, that because Firebug Lite is a JavaScript application, parse errors in IE will keep it from working properly as well if a parse error is the problem.