PDA

View Full Version : Top Navigational Bar III



dmgto
05-11-2005, 09:17 AM
I am new to javascript so please bear with me.

Having bulit a menu using Top Navigational Bar III I am encoutering a javascript error message in ie6 only "Error : Object expected"

I have rebuilt the menu successfully three times, but when the page is closed and opened the error appears.

A link to the problem page is as follows: http://www.scvo.org.uk/Equalities/

this problem only displays in the ie browser to my knowledge

thanks for your help

DMGTO

jscheuer1
05-11-2005, 10:48 AM
The error is:

Error: cP[(m - 1)] has no properties
Source File: http://www.scvo.org.uk/Equalities/includes/sniffer.js
Line: 4
Char:5607

IE calls it line 5 for some reason. NS7.2 also detects the error but, won't tell you about it unless you know how to ask.

Chances are that if you replace this line in your page:

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">with this:

<html>the error will go away but, it might mess other things up on your page. The page doesn't look like it needs that line though, at least not so much that it couldn't be rewritten without it and still look fine.

dmgto
05-26-2005, 09:20 AM
I discovered that some stray code in the custom.js file reating to child menu caused the problem.

Thanks for anyone who looked at this problem.