I am getting a 'Stack overflow at line: 94' error message from one particular Web site. It only seems to happen when I browse to one particular Web page. Is that likely to be a JS script error and how would I troubleshoot it, please?
There is also a yellow exclamation error in the bottom left hand corner which refers to this line:
// build selection box
No, that is not true.
The line number you see in the error box is the line number in the HTML code, *NOT* in the ASP code.
To find which line it *really* refers to, you should use the MS Script Debugger or, if you want a quick answer, click on the VIEW menu and then on the SOURCE menu item. That will show you the HTML. Now find that line number in the HTML instead of the ASP code.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
And I doubt that reloading MSIE 8 will fix anything. I'd bet it is something in your JS code that is not supported by MSIE 8 that is causing it. If you intend the page to work in all browsers, you need to track it down. See above.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
function onLoggedOff() {
<p style="font-family: Verdana, Tahoma, Arial; font-size: 11px;">You are no longer logged on. Thank you for your visit.</p>
parent.location.replace('default.asp');
}
YOU CAN NOT just dump HTML code smack in the middle of a JS function!
What in the world do you/did you think that was supposed to do?
And FF shows the same code. Why it doesn't report an error there is a mystery to me. It should.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
You would need to use a POPON <div> or similar to show formatted messages in the style of alerts. I suspect that is is something you aren't ready to attempt yet, so I'd leave it as an alert() until you get the other problems ironed out.
Yellow exclamation marks are fine, but they don't say *WHAT* the error is. Learn to use the developer tools in IE8 to find out what the actual error is.
And learn to use a JavaScript debugger on *ALL* the platforms you expect to support. It's the only reasonable way to figure out JS errors, really.
And remember: It doesn't matter what the ASP file shows. If it's a JavaScript error, you need to find and debug the error IN THE BROWSER. Looking at the HTML, not at the ASP code.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
And remember: It doesn't matter what the ASP file shows. If it's a JavaScript error, you need to find and debug the error IN THE BROWSER. Looking at the HTML, not at the ASP code.
Yes, I have been doing that today: thanks again for the advice.