2

Drupal 6. I try to add jquerry effect after pressing button

$(function(){
    $('.node-add-to-cart').click(function() {
      $(".prod-pic").effect("transfer", { to: $("#block-uc_cart-0") }, 1000);
    });
});

But I get error object# has no method 'effect'. I created a custom js file with this code and put a link to the template.php using drupal_add_js. According to status report Jquerry UI 1.6 is installed. However, when inspecting html code, among scripts there is no jquery.ui loaded. Should I call it from my custom js file?

1 Answer 1

1

Drupal 6 version of JQuery is 1.26 and after install jquery_update it will be updrade to 1.3.2

If you want persist use jquery method likes effect maybe this article,but I think you can't using jquery 1.6 or upper in Drupal 6 .( I don't told you it's impossible but achieve this job is more struggle and maybe cause problem in other part of your site ).

maybe this question be helpful for you.

2
  • Ok I understand. Where can I find the list of all effects that can be done with 1.3.2 version? Thank you
    – loparr
    Commented Sep 10, 2012 at 16:11
  • Your welcome :)
    – Yuseferi
    Commented Sep 10, 2012 at 17:16

Your Answer

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

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