www.webdeveloper.com
Results 1 to 7 of 7

Thread: Selector undefined

  1. #1
    Join Date
    Jan 2011
    Location
    Munich, Germany
    Posts
    223

    Selector undefined

    Hello all,

    Google Chrome is giving me a useful error message:

    Uncaught TypeError: Cannot call method '...' of undefined

    ...where the jQuery selector - $ - is undefined.

    What is usually the killer-reason for this issue?

    I'm clueless and quite new to jQuery...


    Thanks in advance and kind regards
    http://4nf.org/ - Ajaxify jQuery plugin

  2. #2
    Join Date
    Mar 2012
    Location
    Shanghai, China
    Posts
    4
    I guess the jQuery library is not successfully.
    Maybe you can check the scripts related to an error page,

    <script src="http://code.jquery.com/jquery-latest.js"></script>

  3. #3
    Join Date
    Jan 2011
    Location
    Munich, Germany
    Posts
    223
    Thanks! Much appreciated...

    I have now made sure, I am including jQuery properly:

    Code:
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    ...before the other scripts are included.

    It works on all pages except this problematic one:

    http://www.oeko-fakt.de/produkte/

    What are other reasons, that the selector $ can be "undefined"?

    (e.g. conflicts with other jQuery libraries?)


    Thanks very much and kind regards
    http://4nf.org/ - Ajaxify jQuery plugin

  4. #4
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    792
    In the javascript file /wp-content/themes/softgreen/js/produktsuche.js, try removing the following line at the top:

    Code:
    jQuery.noConflict();
    JavaScript: Learn | Validate | Compact | bionoid

  5. #5
    Join Date
    Jan 2011
    Location
    Munich, Germany
    Posts
    223

    Success!

    Hi Bionoid!

    As a newcomer to jQuery, I am sooooo grateful!
    I've commented it out and it works!!

    (didn't have a clue myself)

    My brother's responsible for this site, but I would like to ask him, whether he can send you a small gift of 10 via PayPal, if you've got PayPal?

    Just as a small "thank you"!

    You can contact me at a@4nf.org / arvgta@gmail.com to give me your PayPal details...


    Thanks ever so much!!


    Kind regards
    http://4nf.org/ - Ajaxify jQuery plugin

  6. #6
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    792
    Hi arvgta,

    You're more than welcome.
    I appreciate the thank you, but payment is not necessary at all
    If anyone contacts you about it, please know that it is not I.

    Have a good day.
    JavaScript: Learn | Validate | Compact | bionoid

  7. #7
    Join Date
    Jan 2011
    Location
    Munich, Germany
    Posts
    223
    Hi Bionoid!

    Ok, that's very kind of you...

    Thanks once more!!

    You too, have a nice day :-)


    Kind regards
    http://4nf.org/ - Ajaxify jQuery plugin

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles