Results 1 to 2 of 2

Thread: Flex level Doesn't allow another document ready statement

  1. #1
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Flex level Doesn't allow another document ready statement

    1) Script Title: Flex Level Popup Menu (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/popupmenu.htm

    3) Describe problem: once installed the script doesn't allow me to use $(document).ready() anymore for other jQuery javascript scripts. It says "Object doesn't suppor this property or method" in IE and FF firebug says "$ is not a function"

    If I remove the script then my jQuery in the document.ready works fine. Any ideas?

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

    Default

    It does actually, though the script calls jQuery.noconflict(), which means $ no longer references the main jQuery object by default, for the sake of other libraries on the same page (ie: Prototype). If your page only uses jQuery, the easiest solution is just to comment out this line inside the .js file:

    Code:
    //jQuery.noConflict()
    DD Admin

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

    banaya (05-05-2010)

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
  •