Results 1 to 3 of 3

Thread: DD Mega Menu Conflict With accordion

  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default DD Mega Menu Conflict With accordion

    1) Script Title: DD Mega Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ddmegamenu.htm

    3) Describe problem: Like the post title, i add accordion on my page that have ddmegamenu script. the menu working well but not the accordion, but when i disable ddmegamenu the accordion works.

    Code:
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/ddmegamenu.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function(e){
    ddmegamenu.docinit({
    	menuid:'solidmenu',
    	dur:500, 
    	easing:'easeInOutCirc' //<--no comma after last setting
    })
    });
    </script>
    <script>
        jQuery(document).ready(function(){
          $('.head').click(function(e){
            e.preventDefault();
            $(this).closest('li').find('.contentacc').slideToggle();
          });
        });
      </script>
    i have tried jQuery.noConflict(); still not work.

    Please help.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    You might actually want to remove the noConflict() from inside the ddmegamenu.js script. Use a text only editor like NotePad to comment it out (addition red):

    Code:
    /* DD Mega Menu
    * Created: June 13th, 2011 by DynamicDrive.com. This notice must stay intact for usage 
    * Author: Dynamic Drive at http://www.dynamicdrive.com/
    * Visit http://www.dynamicdrive.com/ for full source code
    */
    
    // July 27th, 11': Added ability to activate menu via "click" of the mouse, on top of the default "mouseover".
    
    //jQuery.noConflict()
    
    jQuery.extend(jQuery.easing, {  //see http
    And do the same in accordion if it has a script and has that in it. Use only one version of jQuery for the page. What accordion script are you using? Or is that code in your post the whole thing?

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

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

    xsyam (08-23-2013)

  4. #3
    Join Date
    Aug 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much jscheuer1,

    Solved with only comment out the noConflict() on ddmegamenu.js

Similar Threads

  1. Conflict on the Accordion Menu
    By mcgarry in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-29-2012, 04:16 PM
  2. Mega menu issue conflict IE-7
    By vinpkl in forum JavaScript
    Replies: 1
    Last Post: 11-24-2012, 10:48 AM
  3. Accordion Menu effect, conflict
    By jimothy in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-12-2009, 06:59 PM
  4. Animated Collapsible and Accordion Menu Conflict
    By ronchan in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 11-10-2009, 08:47 PM
  5. two accordion menu headers conflict
    By lindaklong in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-15-2009, 08:40 AM

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
  •