Search code examples
jquerylightbox2

How to make this lightbox script run in jQuery.noconflict mode?


I assume this script calls itself everytime with the .call(this) function which explains why I don't have to call it explicitly from the page HTML. Is this correct?

Can it be modified to run in noconflict mode?


Solution

  • Essentially .noConflict() un-defines $. This means calls like

    $.ajax(...);
    $("a").some_func(...);
    

    have to be changed to:

    jQuery.ajax(...);
    jQuery("a").some_func(...);
    

    and so on. Modify the script as such and it should work fine.