Results 1 to 4 of 4

Thread: runtime error in Chrome CSS Drop Down Menu (v2.5)

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default runtime error in Chrome CSS Drop Down Menu (v2.5)

    1) Script Title: Chrome CSS Drop Down Menu (v2.5)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:

    when running this script in visual studio 2008 i receive the following error:

    A Runtime Error has occurred.
    Do you wish to Debug?

    Line: 165
    Error: Object required

    here is what the code looks like at this location:

    164 addEvent:function(target, functionref, tasktype){
    165 if (target.addEventListener)
    166 target.addEventListener(tasktype, functionref, false);
    167 else if (target.attachEvent)
    168 target.attachEvent('on'+tasktype, function(){returnfunctionref.call(target, window.event)});
    169},

    i'm pretty new to Java script...any help is greatly appreciated

    thx

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What about in an actual browser though? In MS Frontpage for example, I often get JS errors that do not occur in browsers. That's because the HTML editor is using an outdated browser/ JavaScript engine that has no bearing on modern day browsers.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    sukimedia (01-22-2009)

  4. #3
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i'm getting the error in IE7 as well

  5. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The script was tested on and does work in IE7, at least for me. Do you get the same error when viewing the DD demo in IE7? if not it could be something specific on your page, and in that case please post a link to the problem page.
    DD Admin

Bookmarks

Posting Permissions

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