...

View Full Version : Issue running ddlevelsmenu in hosting environment



Kam99
01-04-2012, 04:11 PM
I've tested the menu in my environment without any issue. However, in hosting environment i am getting the following error:

Unable to get value of the property 'className': object is null or undefined

I have included the function when error occurs:

css:function(el, targetclass, action){
var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
if (action=="check")
return needle.test(el.className)
else if (action=="remove")
el.className=el.className.replace(needle, "") <--- ISSUE
else if (action=="add" && !needle.test(el.className))
el.className+=" "+targetclass
},

Any Idea as what may cause this? Thanks

Logic Ali
01-04-2012, 06:08 PM
You've probably forgotten to upload a file, or you uploaded it to the wrong location, or the case of the filename doesn't match the filename being requested.

Kam99
01-04-2012, 06:24 PM
I have copied the entire library. Javascript degugger points to the function within the menu js that contains all the required functions.

Logic Ali
01-04-2012, 06:41 PM
I have copied the entire library. Javascript degugger points to the function within the menu js that contains all the required functions.
Well it looks like the el parameter is undefined, so you'll need to find out why.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum