Results 1 to 7 of 7

Thread: Conflict with Lightbox V2 and Glossy Accordion Menu

  1. #1
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default Conflict with Lightbox V2 and Glossy Accordion Menu

    Script: Lightbox image viewer 2.03a
    http://www.dynamicdrive.com/dynamici...box2/index.htm

    I have a conflict with Lightbox V2 and Glossy Accordion Menu.
    http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    When I combine the two the accordion does not open.

    I already have the script working with Lightbox V1 but when I use V2 and the associated js files the conflict occurs.
    http://www.castlefordheritagetrust.o...Activities.php

    I have not published the changes so I cannot give you a live page to examine.

    Please advise

    John
    Last edited by BorderTerroir; 02-23-2015 at 06:48 AM.

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

    Default

    Hmm it could be due to a conflict between the Prototype library (used by Lightbox v2) and jQuery (used by Accordion Menu). Inside ddaccordion.js at the top, try adding the line in red to it:

    Code:
    jQuery.noConflict()
    
    var ddaccordion={
    	ajaxloadingmsg: '<img src="loading2.gif" /><br />Loading Content...', //customize HTML to output while Ajax content is being fetched (if applicable)
    DD Admin

  3. #3
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Many thanks, will try in the morning it's coming up to midnight here.

  4. #4
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Hmm it could be due to a conflict between the Prototype library (used by Lightbox v2) and jQuery (used by Accordion Menu). Inside ddaccordion.js at the top, try adding the line in red to it:

    Code:
    jQuery.noConflict()
    
    var ddaccordion={
    	ajaxloadingmsg: '<img src="loading2.gif" /><br />Loading Content...', //customize HTML to output while Ajax content is being fetched (if applicable)
    Sorry I've tried this with the ddaccordion file and the LightboxV2 files and it didn't work. :-(

    John

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

    Default

    Ok tried a few other things to no avail. If you have time I'll try and come back to this.
    DD Admin

  6. #6
    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

    I'd suggest updating to a more recent version of Lightbox (it now is jQuery based) or using one of the jQuery based Lightbox clones like Slimbox, or Fancybox (there are many to choose from).

    Current Lightbox (jQuery based):

    http://lokeshdhakar.com/projects/lightbox2/

    Slimbox:

    http://www.digitalia.be/software/slimbox2

    For other jQuery based Lightbox clones Google 'jquery lightbox clones'.

    See also my blog entry on working with Slimbox (written before Lightbox updated to jQuery based, but still applicable to usage of Slimbox):

    http://www.dynamicdrive.com/forums/e...d-SlimBox-Good
    - John
    ________________________

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

  7. The Following User Says Thank You to jscheuer1 For This Useful Post:

    BorderTerroir (02-23-2015)

  8. #7
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Thanks for that I've updated to FancyBox and it works.

    John

Similar Threads

  1. Lightbox and Accordion Content script conflict
    By yaronmunz in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 05-19-2012, 04:00 PM
  2. Glossy Accordion menu, lightbox and parameters to expand a submenu
    By crester in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-30-2010, 05:58 PM
  3. Resolved Glossy Accordion Menu conflict with mootools in joomla 1.5
    By xtnct in forum Dynamic Drive scripts help
    Replies: 8
    Last Post: 04-23-2009, 02:54 PM
  4. [Combination] Lightbox & Glossy Accordion Menu
    By sysout in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 02-17-2009, 03:49 AM
  5. Probable conflict between Lightbox 2.03a and Bullet List Accordion Menu
    By curavon in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 10-31-2008, 07:23 PM

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
  •