1

Here is the live page I am trying to implement on my Drupal website:

Working Page

This page works perfectly fine and uses the same versions of jQuery and jQueryUI that Drupal 7 uses.

Now when I put this content onto my Drupal site located here:

Drupal Page - Not working

jQueryUI seems to be not working. The jQuery Rotate is working fine however.

I've been searching for answers and implemented several methods, all of which have failed including the method of wrapping my jQuery in this code:

(function($) {

})(jQuery);

Any help as soon as possible would be amazing!

2 Answers 2

1

This is what you're doing (according what I see on your html code)

jQuery(document).ready(function($) {
...
})(jQuery);   

That is incorrect. Try with this

(function($) {
    $(function() {
    ...
    });
})(jQuery);   

Check this popular question in order to get more details about the correct syntax.

4
  • That's giving me a syntax error in Dreamweaver and disables everything on my page now, including the jQuery Rotate. Jun 8, 2012 at 22:06
  • Oh I see, you forgot the first open bracket. But still, this did not fix the problem. Exact same results. Jun 8, 2012 at 22:08
  • @TommyCoffee: sorry, I missed a { after (function($). Please try again Jun 8, 2012 at 22:09
  • @Tommy Coffee: I easily found the problem I solved on my answer because it was generating a js error, unfortunately now we don't have any quick indicator of problems. I'd have to review all the code and unfortunately I don't have the time now. Jun 8, 2012 at 22:27
0

The solution was pretty obscure. My code called for jquery 1.7 so that's what I had loaded up. On a hunch, I changed it back to Drupal's default jQuery 1.5 and it worked.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.