Results 1 to 8 of 8

Thread: conflict between Accordion Content script & Lightbox JS v2.0

  1. #1
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default conflict between Accordion Content script & Lightbox JS v2.0

    1) Script Title:
    Accordion Content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...daccordion.htm
    3) Describe problem:
    I use both these scripts. Separately they work just fine, but togheter on the same page... the Lightbox wont work. This is from Firebug:
    element.style has no properties
    [Break on this error] element.style.width = w +"px";

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This sounds like a conflict between the jQuery library used by the first script, and Prototype used by the second. If so, what you can do is follow the same procedure I mentioned in this thread. Specifically, inside ddaccordion.js, first do a search and replace, by replacing all occurences of $ with $j. Then, and only then, add the below to the top of the file:

    Code:
    var $j = jQuery.noConflict()

  3. #3
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you !!! that solved my problem!!!

  4. #4
    Join Date
    Feb 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you!

    I had the same exact problem and was stuck for hours. So in gratitude for this fix that I registered as a forum member just to say thanks.

  5. #5
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    THANK YOU GENIUS CODERS oh my goodness, a whole day i spent scowering this js file..

  6. #6
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    actually, silly me jumped to conclusions when the light box worked, but accordion still does not.. any next tips?

  7. #7
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    same problem here.. lightbox running well but accordion doesn't..
    please advise..

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please start a new thread for a new question. Your problem may appear to be the same as someone else's, but may not be. Follow the directions for creating a new thread by including links to the script(s). Also, a link to your page can help speed up the process, as we often will need that anyway.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •