Log in

View Full Version : Errors on page



Freeman
10-06-2005, 02:49 PM
How do you fix the errors that you get in the lower left corner of the page? One is a syntax error another one is object expected and the other one is 'document.all.MenueTable.style' is null or not an object. How do I go into the html and fix these errors? do the lines correspond to the all lines or just lines of scripting. JF

jscheuer1
10-06-2005, 03:16 PM
Those are script errors and so are not technically html. If the script is on the page, the line numbers are all the ones on the page though they may be one line above because if a line isn't properly formed, the script parser may not realize it until it gets to the next line and sees that nothing there completes the improperly formed line above it. Fire Fox is a better browser to use when debugging scripts but you have to launch its javascript console while viewing the page to see the errors.

Syntax errors can be tricky and usually require some knowledge of javascript to fix.

Object Expected usually means that a function called from that point in the code is broken due to syntax error or something referred to in it being missing or null. Or the function just isn't there period.

An error like:

'document.all.MenueTable.style' is null or not an object
usually means that there is more than one or none of the element identified by an id or name of 'MenueTable' in the html part of the code.