Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sorry to say, you are going to want to take the time to a) fix the old plugin to work on newer versions of jQuery yourself, or b) switch to a carousel that works with the new versions of jQuery. Including two versions of jQuery on a site is <strong>bad practice</strong>, and you will be <em>asking for trouble later</em>, but it is not impossible.</p> <p>You may be able to do something like this:</p> <pre><code>&lt;script type="text/javascript" src="/js/jquery-1.2.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/oldcarousel.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;jQuery12 = jQuery.noConflict();&lt;/script&gt; &lt;script type="text/javascript" src="/js/jquery-1.4.2.js"&gt;&lt;/script&gt; </code></pre> <p>Assuming that <code>oldcarousel.js</code> uses the closure (meaning the first and last lines of code look like this): </p> <pre><code>(function($){ // and that all plugin code in here references $ not jQuery })(jQuery); </code></pre> <p>It should be able to "hang on" to jQuery 1.2 after 1.4 overwrites it.</p> <p>It might also work to change the include order: You may be able to do something like this:</p> <pre><code>&lt;script type="text/javascript" src="/js/jquery-1.4.2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/jquery-1.2.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/js/oldcarousel.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;jQuery12 = jQuery.noConflict(true);&lt;/script&gt; </code></pre> <p>As passing <code>true</code> to <a href="http://api.jquery.com/jQuery.noConflict" rel="nofollow noreferrer"><code>.noConflict()</code></a> should restore the <code>$</code> and <code>jQuery</code> aliases from the new version.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload