Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery issue - #<an Object> has no method

I've tried a veriety of jQuery plugins recently and I keep getting this error …

has no method
(source: shaunbellis.co.uk)

… regardless of what plugin I try to use.

I've checked the links to the JS files which are all there and working fine. I'm using Drupal if that makes any difference.

I've run the plugins away from the main site to demonstrate that they are working and that I am doing things right with 100% success.

Any ideas?

Update:

My jQuery file called in the footer:

$(document).ready(function() {            $('#footer_holder').hide();  // Fancy Box $("a.fancybox").fancybox({     'hideOnContentClick': true,     'titlePosition' : 'over',     'transitionIn'  :   'elastic',     'transitionOut' :   'elastic',     'speedIn'       :   600,      'speedOut'      :   200,      'overlayShow'   :   false, });  $("#homepage_slider").easySlider({     auto: true,      continuous: true, }); 

});

*note - fancy box works fine (unless the easySlider code is above it). jQuery is sorted out by Drupal. I'm running version 1.4

like image 784
Shaun Avatar asked Jun 07 '10 09:06

Shaun


People also ask

Why jQuery is not working in HTML?

Be sure to import the jQuery library before your custom script is loaded. You will need to go the jQuery CDN and suss out a recent version 1 minified CDN URL. Go to the page “View all versions” (or something like that) and copy the link address of the minified version for 1.9. 3 or 1.10.

What can I use instead of jQuery?

Javascript Nevertheless, Native javascript is one of the best jQuery alternatives, in fact, It is the framework of JS. Javascript is the best because any browsers ships with javascript and you do not need to install jQuery in your application.


Video Answer


2 Answers

This problem can also arise if you include jQuery more than once.

like image 178
Stephen Saucier Avatar answered Sep 25 '22 01:09

Stephen Saucier


Ignore me. I'm sorry everyone. I'd mistyped the url of the script. Thanks to Simon Ainley for the prod in the right direction.

Sorry again. Thanks.

like image 30
Shaun Avatar answered Sep 21 '22 01:09

Shaun