Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    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 07:44 PM.

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have copied the entire library. Javascript degugger points to the function within the menu js that contains all the required functions.

  • #4
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •