javascript issue

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

javascript issue

Post 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?
Last edited by aravona on Wed Jan 13, 2010 4:59 am, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: javascript issue

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: javascript issue

Post 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?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: javascript issue

Post by daedalus__ »

try this:

Code: Select all

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

Code: Select all

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