Conflict stmenu and jquery1.4.2

Posted on 2011-10-03
Last Modified: 2012-05-12
In my website am using stmenu and Carousel. Here i don't know Carousel is working but Menu is not working in my website.  When i remove jquery1.4.2.js  script tag Menu is working, but Carousel is not working. When i include jquery1.4.2.js  script tag Menu is not working, but Carousel is working.
Lastly i find out stmenu.js and jquey1.4.2.js conflict. I want to work both. What can i do. Help me
Question by:rameshitm
    LVL 11

    Expert Comment

    There are a couple of solutions outlined in jquery's documentation on using .noConflict with multiple JS libraries. Try them out and see which works for you.


    Author Comment

    Where i have to  include the .noConflict
    LVL 11

    Accepted Solution

    The version I have usually used is the one where you assign jquery to another global variable like:

    var $j = jQuery.noConflict();

    Open in new window

    This way, you would use $j everywhere that you normally used $ for jquery. This only works if the carousel plugin you are using has been created in such a way to be compatible with this process. Hopefully it has.

    Author Closing Comment

    Thank you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Title # Comments Views Activity
    Help with my python script 6 135
    AutoHotkey...Moniker cannot open file 15 49
    Powershell moving files 11 50
    Python error - Need Help 12 73
    The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
    Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now