views:

494

answers:

2

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

has no method

… 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

+1  A: 

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.

Shaun
whoop! go me :-)
sea_1987
who is Simon Ainley :p ?
jAndy
… and thanks of course to jAndy and Pekka.(I was talking to Simon using an IM client).
Shaun
I just came here after spending a good half an hour on the same problem - never have I felt so stupid!
rrrhys
+1  A: 

I had this problem, or one that looked superficially similar, yesterday. It turned out that I wasn't being careful when mixing jQuery and prototype. I found several solutions at http://docs.jquery.com/Using_jQuery_with_Other_Libraries. I opted for

var $j = jQuery.noConflict();

but there are other reasonable options described there.

Michael Wolf