Forum Moderators: open

Message Too Old, No Replies

Internet Explorer Error

syntax error code 0?

         

edwards

11:42 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



Hi,

I'm new here and I have a small dilemma. My website page loads, however, the status bar reads, "done, but with errors on page". When I select for details, the window reads, "
Line: 2
Char: 1
Error: Syntax error
Code: 0
"

(1) I don't really undertsand how to distinguish the beginning and end of a line so I have had trouble even locating the error,
(2) I have no clue what to look for.

PLEASE HELP THIS BLIND MAN.

tedster

12:17 am on Aug 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Those IE error messages could certainly be a lot more user friendly, couldn't they. The error is in a script your page is running (or trying to) -- usually javascript. The line and character numbers refer to the line in the script itself, not the HTML.

edwards

12:34 am on Aug 10, 2005 (gmt 0)

10+ Year Member



tedster,

Thanks a million. Is there anyway for me to tell which script it is?

tedster

3:03 am on Aug 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would check out the first script that is called. Line 2, character 1 would be easy to spot.

Also, if you can't find the error reasonably quickly in IE, try opening the page in Firefox with its Javascript Console active. The feedback in Firefox can be more informative.

edwards

4:00 am on Aug 10, 2005 (gmt 0)

10+ Year Member



Tedster,

Thanks for the help. I still haven't figured out which script. I tried disabling each script and went through each script code to see when the error was resolved and nothing worked. If anyone else has any ideas as well i would REALLY appreciate the help. Thanks again Tedster!

welkin

4:21 am on Aug 10, 2005 (gmt 0)

10+ Year Member



hmm, have you tried to see what javascript's not working then? go thru each script and test to see if any is functioning improperly...

edwards

12:33 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



Welkin...
What is the most effective way to test a script?

welkin

6:01 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



actually i only meant that, if you implemented javascripts to do something, do you see those things happening as expected?

edwards

6:40 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



Everything is working as expected. That is part of my problem, because I was hoping to find an error in the script's presentation. Any suggestions?

j4mes

8:09 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



As tedster suggested, why not load the troublesome page in Firefox and then use its Javascript console with its rather more informative error messages to see what's wrong?

edwards

8:18 pm on Aug 10, 2005 (gmt 0)

10+ Year Member



Thanks guys... I'll check out Firefox and see what descriptive info it gives on the error