View Full Version : What's a Javascript Console?
multilingual
24th October 2005, 19:06
I am trying to sort out some syntax errors on a site of mine. Not being overly clever with the technical side of things I asked for some help on a technical forum and received this reply:
Most browsers will have a Javascript Console. The console will open the source and highlight the error. Makes it a lot easier
:?
I did ask for an explanation of what this means, but they didn't reply.
Can anyone give me a few pointers?
JB
dagr
24th October 2005, 19:57
I am trying to sort out some syntax errors on a site of mine. Not being overly clever with the technical side of things I asked for some help on a technical forum and received this reply:
Most browsers will have a Javascript Console. The console will open the source and highlight the error. Makes it a lot easier
:?
I did ask for an explanation of what this means, but they didn't reply.
Can anyone give me a few pointers?
JB
It's just the standard error stream for javascript execution (i.e. a dedicated browser window that shows errors and warnings whenever javascript is run from that browser). On Firefox it's in the "Tools" menu I believe (not exactly sure as my browser is in French).
TWD-Tony
24th October 2005, 20:07
If you have any Java errors and are runnng IE then there should be a small yellow triangle in the bottom left hand corner with a "!" in it... Double click this triangle to open the de-bugging window, this will basically tell you the type of error and what line it is on :wink:
multilingual
25th October 2005, 08:01
Aha, thanks Tony
I opened it up and it said;
Line 8
Character 1
Syntax error
Code 0
:? er.....ok
So now what do I do? What am I looking for?
JB
TWD-Tony
25th October 2005, 15:55
Open the source code for the problem page and see that's on line 8 character 1 :?:
I'm no java de-bugging expert but the net is a huge resource so try googling for java errors and see what the code 0 is. :wink: