SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: jQuery Conflict

  1. #1
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question jQuery Conflict

    hi guys.

    i am working on a site .and i am using three things on one page;
    1)jquery drop down
    2) jquery carousel
    3)light box for gallery page.

    but when i open gallery page jquery drop down and jquery carousel working but light box dose,t work .i thingk conflict between jquer files .plz gys help me its urgent.

  2. #2
    SitePoint Zealot FaridHadi's Avatar
    Join Date
    Nov 2008
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi ansa,

    You'll need to show us some code for us to be able to help you.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,296
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Here are some pages that offer help for that problem:

    http://api.jquery.com/jQuery.noConflict/

    http://docs.jquery.com/Using_jQuery_...ther_Libraries

    But personally, I would use a jQuery alternative to lightbox. I like slimbox2, myself.

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2007
    Location
    New London, CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ralph.m has it right. I run into this problem on a daily basis at work. Our partner's all use jQuery, and we use Prototype. It's a simple fix really.

    At the end of your jQuery file just add: jQuery.noConflict(); and then change all references to the $() to jQuery(). That should do it. Although just using a jQuery modal window script is truly the easiest solution.

    Good luck!

  5. #5
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi all Thnks Alot .and thanks to "ralph.m" now i place of light box i m going to use slimbox2.thnks ;

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,296
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    You're welcome, ansa. I've recently started to us slimbox2, and really love it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •