Cycle Plugin + Lightbox 2

Out of context: Reply #3

  • Started
  • Last post
  • 6 Responses
  • 3030

    There is a conflict:
    You use jQuery and scriptaculous - both frameworks use $ sign and this is what is causing the conflict.

    There are two solutions:
    1. put jQuery into no-conflict mode - jQuery.noConflict(); and then in your JS code where you call jQuery you use jQuery(".element").hide() instead of $(".element").hide();

    2. second solution is to remove all prototype/scriptaculous JS and replace it with appropriate jQuery plugins (like jQuery fancybox);

    If this is your personal project, go for the second solution as you will not mix frameworks and everything will be connected to jQuery.

View thread