Page 1 of 1

javascript issue

Posted: Tue Jan 12, 2010 5:05 am
by aravona
ok got some javascript and I dont know much about it if I'm honest (I'm still transfering a site and slowly there are more and more problems)

On the old site, the javascript drop down worked fine.

Put the java. file in the right place on the new server, new site doesnt have any drop down features now. In fact, the new site has no javascript, on IE or firefox, the oldsite has no javascript on IE and only works on firefox...

This is the error I'm getting:
Runtime error
Line: 245
Error menuObjArray[0].filters.alpha is null or not an object

Any ideas?

Re: javascript issue

Posted: Tue Jan 12, 2010 11:59 am
by pickle
Bit of a pet peeve: Java != Javascript.

"filters" is an IE construct, so Firefox will have no idea what you're talking about.

Re: javascript issue

Posted: Wed Jan 13, 2010 4:41 am
by aravona
I mostly solved this issue. I'm not getting a new error:

line 206:
error: exception occured

No idea what this means but heres that line.

Code: Select all

tmpStr2 = String("." + itemContainerDiv.childNodes.item(lastmenuNum).className);
Any ideas?

Re: javascript issue

Posted: Wed Jan 13, 2010 11:52 am
by daedalus__
try this:

Code: Select all

tmpStr2 = "." + itemContainerDiv.childNodes.item(lastmenuNum).className;
or

Code: Select all

tmpStr2 = "." + itemContainerDiv.childNodes.item(lastmenuNum).className.toString();