Runtime error

  • Thread starter Thread starter Dennis Allen
  • Start date Start date
D

Dennis Allen

Hi. On my copy of IE6, the following web page gives a runtime error,
line 185:

http://www.calsky.com/?Planets=

I've contacted the webmaster, but he doesn't see the error. Is the
error real, or just on my machine? Does anyone have any way to
determine the cause of this error? Any utility to help track it down?
Any advice is appreciated...Dennis
 
It's not really an "error". It's a message intended for developers writing
web pages for Internet Explorer. There's nothing to worry about. In fact,
you can easily prevent those messages from appearing. In Internet Explorer,
go to Tools > Internet Options > Advanced tab. Place a checkmark in 'Disable
script debugging' and remove the checkmark from 'Display a notification
about every script error'.
 
Nice to know it's not a major problem. I'd still like to find out what
part of that web page is causing it...Dennis
 
Dennis Allen said:
Hi. On my copy of IE6, the following web page gives a runtime error, line 185:

http://www.calsky.com/?Planets=

I've contacted the webmaster, but he doesn't see the error. Is the error real, or just on my machine? Does anyone have any way
to determine the cause of this error? Any utility to help track it down?


Which OS? In XP you can start with Notepad from a View Source.
Turn off Word Wrap. Turn on Status Bar. (Alt-o,W Alt-V,S)

Doing that and then searching (press F3) for script finds:

Line 182: Column 608

javascript:popup('/observer//help.cgi?file=/observer/help/en/theyr-meteo','',300,350)

BTW that works from the Address bar too.

Do you have a popup blocker active (especially one which interferes
with the datastream?)

Any advice is appreciated...Dennis


HTH

Robert Aldwinckle
---
 
I see that on line 102 col 692. I wonder why the runtime error is
always line 185?

I can't find it, but my IE6 does blocks popups. I wonder why this page
protests and not other from that web site?
 
Oops. Spoke too soon. Found how to turn off popup blocker, but still
got the error. Now what?
 
....
I see that on line 102 col 692. I wonder why the runtime error is always line 185?

There is more than one javascript: script fragment in there.
I only gave you the one I was finding which was in the vicinity
of line 185. Also the line numbers that Notepad gives and
the line numbers the script error messages give are often
inexplicably out by a few (perhaps to account for the DOCTYPE
header but in this case that would be going the wrong way.)

My question is why are you seeing such a *different* line number?
One explanation would be that you are missing bits of the page
and depending on what is missing that could account for syntax
errors or other errors when it comes time to interpreting what is left.

Press Ctrl-End and verify the html is complete. What line number
is showing there? FWIW today I see 338 and here is a complete
list of the instances of javascript: in the source:

179,576 javascript:popup('/observer//help.cgi?file=/observer/help/en/miniobs','',300,350)
181,645 javascript:popup('/observer//help.cgi?file=/observer/help/en/theyr-meteo','',300,350)
181,636 javascript:popup('/observer//help.cgi?file=/observer/help/en/meteo','',300,350)
277,118 javascript:popup('/observer//help.cgi?file=/observer/help/en/login','',300,350)
312,13 javascript:popup('/observer//help.cgi?file=/observer/help/en/edition','',300,350)
322,211 javascript:popup('/observer//help.cgi?file=/observer/help/en/session','',300,350)

Notice that the one I cited yesterday has moved slightly but only slightly
and not enough to account for the much bigger difference that you had.


Oh. I see they have an option for "personalized" displays.
Have you used that? Bugs in such features would be another
explanation for your symptom. It could certainly account for
any discrepancies between my observations and yours.


HTH

Robert
---
 
FYI: The author found the bad js code. Couldn't see it at first,
because he had a much faster connection than me.

Dennis Allen said:
Oops. Spoke too soon. Found how to turn off popup blocker, but still
got the error. Now what?
 
Back
Top