Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-04-2012, 04:11 PM   PM User | #1
Kam99
New to the CF scene

 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Kam99 is an unknown quantity at this point
Internet Explorer Issue running ddlevelsmenu in hosting environment

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
Kam99 is offline   Reply With Quote
Old 01-04-2012, 06:08 PM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
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.

Last edited by Logic Ali; 01-04-2012 at 06:44 PM..
Logic Ali is online now   Reply With Quote
Old 01-04-2012, 06:24 PM   PM User | #3
Kam99
New to the CF scene

 
Join Date: Jan 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Kam99 is an unknown quantity at this point
I have copied the entire library. Javascript degugger points to the function within the menu js that contains all the required functions.
Kam99 is offline   Reply With Quote
Old 01-04-2012, 06:41 PM   PM User | #4
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by Kam99 View Post
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.
Logic Ali is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:45 AM.


Advertisement
Log in to turn off these ads.