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

  • Home
  • SEARCH
  • 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 908307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:41:46+00:00 2026-05-15T16:41:46+00:00

I’m using jQuery and some very-common-jquery-plugins in CMS extensions (including jQueryUI and jQueryTools along

  • 0

I’m using jQuery and some very-common-jquery-plugins in CMS extensions (including jQueryUI and jQueryTools along with many others) in some CMS extensions that are used by many people in a wide array of situations. I always get into issues where there are conflicts between my extension’s plugins and plugins added by another extension on the same CMS page. Sometimes the other extension loads an earlier version of the jQuery plugin and it kills my instance.

I want to “rename” or “wrap” (into a single plugin with a unique name) all the plugins that my extensions use so my instance doesn’t get affected in any way even when there are other instances of the same plugins on the same page.

Wrapping all plugins into a single plugin would be the ideal solution, if that’s possible – instead of renaming.

Any suggestions, Is this even possible ?

Thanks a bunch,
Norman.

  • 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-15T16:41:46+00:00Added an answer on May 15, 2026 at 4:41 pm

    You can wrap plugins in an anonymous function and call them with the specific version of jquery.

    Example:

    <script src="jquery-1.3.js"></script>
    <script>
      $jq13 = jQuery.noConflict(true);
    </script>
    
    <script src="jquery-1.4.js"></script>
    <script>
      $jq14 = jQuery.noConflict(true);
    </script>
    
    <script>
      (function($){
        // All references to $ in this block will refer to $jq14
        // Put plugins inline here
      })($jq14);
    </script>
    

    Well written plugins will already be written this way, so you can just change the last line to set which jquery object it should use.

    Or you could change window.jquery before calling each plugin. Like this:

    <script src="jquery-1.3.js"></script>
    <script>
      $jq13 = jQuery.noConflict(true);
    </script>
    
    <script src="jquery-1.4.js"></script>
    <script>
      $jq14 = jQuery.noConflict(true);
    </script>
    
    <script>
      window.jQuery = $jq14;
    </script>
    <script src="some_plugin.js"></script>
    
    <script>
      window.jQuery = $jq13;
    </script>
    <script src="some_other_plugin.js"></script>
    

    A little less elegant, but it should work.

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

Sidebar

Ask A Question

Stats

  • Questions 483k
  • Answers 483k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer http://css-discuss.incutio.com/wiki/Using_Ems "They are resizable in all Web browsers that support… May 16, 2026 at 6:57 am
  • Editorial Team
    Editorial Team added an answer I found the problem. In the application pool there wasn't… May 16, 2026 at 6:57 am
  • Editorial Team
    Editorial Team added an answer FWIW, checking tcpview+perfmon /res, it appears that dnscache listens on… May 16, 2026 at 6:57 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.