Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6242485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:57:52+00:00 2026-05-24T11:57:52+00:00

I need two jQuery sources and i don’t know if i am implementing .noConflict

  • 0

I need two jQuery sources and i don’t know if i am implementing .noConflict correctly?

<link href="count/jquery.countdown.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script type="text/javascript" src="Count/jquery.countdown.js"></script>

    <script type="text/javascript"> 
        $(function () {
            var Day = new Date();
            Day = new Date(2015, 11, 22, 09, 00, 00, 00)
            $('#defaultCountdown').countdown({until: Day});
            $('#year').text(Day.getFullYear());
        });
        jQuery.noConflict(true);
    </script>               

    <link rel="stylesheet" href="Video/css/jquery.fancybox.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="Video/css/style.css" type="text/css" media="screen" />     
    <script type="text/javascript" src="Video/js/jquery-1.3.2.min.js"></script>     
    <script type="text/javascript" src="Video/js/flowplayer-3.1.1.min.js"></script>
    <script type="text/javascript" src="Video/js/jquery.fancybox-1.2.1.pack.js"></script>
    <script type="text/javascript" src="Video/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="Video/js/fancyplayer.js"></script>
    <script type="text/javascript"> 
        var videopath = "http://www.site.co.uk/Video/";
        var swfplayer = videopath + "videos/flowplayer-3.1.1.swf";
    </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:57:53+00:00Added an answer on May 24, 2026 at 11:57 am

    Update: Regarding your update, I think you just need to specify a parameter for your ready handler:

    $(function($) {
        //...
    });
    jQuery.noConflict(true);
    

    So that the code inside the handler refers to the first version and not to the second one (the second jQuery include will overwrite $ otherwise).


    I think if you pass true, which essentially also resets jQuery, you have to assign a reference to that jQuery version on your own:

    var jQueryVersionX = jQuery.noConflict(true);
    jQueryVersionX(function($) {
        // $ references the jQueryVersionX;
    });
    

    jQuery passes a reference to itself as first argument to the ready handler.

    If you include both scripts in the header, then jQuery will first reference the second included version. After calling jQuery.noConflict(true), jQuery will refer to the first included version.

    But note from the documentation:

    If necessary, we can free up the jQuery name as well by passing true as an argument to the method. This is rarely necessary, and if we must do this (for example, if we need to use multiple versions of the jQuery library on the same page), we need to consider that most plug-ins rely on the presence of the jQuery variable and may not operate correctly in this situation.

    Make sure you include the versions and the plugins in the right order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two example filename strings: jquery.ui.min.js jquery.ui.min.css What regex can I use to
I have two validation jQuery functions which I need to fire one after another.
I need to be able to do two things with Javascript or JQuery, without
I am using jQuery. Now I need to classify the two lists. If any
I need to cut a list into two pieces with JQuery. Suppose I have
I'm not sure how to incorporate the two jquery libraries that I need to
I need two divs to look a bit like this: | | ---| LOGO
I need two methods one to encrypt and one to decrypt an xml file
I need two tables and two sets of fields, not the name of the
Why do I need two of them? When I have to use one or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.