Results 1 to 2 of 2

Thread: Errors on page

  1. #1
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Errors on page

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •