Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had the exact same problem with the exact same problem - The newest version of jQuery is called on the master asp.net page, and I needed to include jQuery 1.2.6 in a page with the slider...There's lots of posts on here about using the noConflict(); argument w/ this exact same code. Anyways, here's what I did:</p> <pre><code>&lt;script type="text/javascript" src="includes/js/jquery.nyroModal.js"&gt;&lt;/script&gt;//This was my conflicting code - lightboxes weren't working any more with the slider implemented &lt;script src="includes/js/slider.js" type="text/javascript"&gt;&lt;/script&gt;//This is jQuery 1.2.6 that I renamed for organizational purposes &lt;script src="includes/js/jquery-ui-full-1.5.2.min.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;//Here's the UI that the slider requires &lt;script type="text/javascript"&gt; var jqSlider = $.noConflict(true);//You MUST use the noConflict method directly after loading the preferred library jqSlider(function(){ // Replace all $ as follows var container = jqSlider('div.sliderGallery'); var ul = jqSlider('ul', container); var itemsWidth = ul.innerWidth() - container.outerWidth(); jqSlider('.slider', container).slider({ min: 0, max: 5800, handle: '.handle', stop: function (event, ui) { ul.animate({'left' : ui.value * -1}, 500, 'linear'); }, slide: function (event, ui) { ul.css('left', ui.value * -1); } }); }); &lt;/script&gt;// After this the rest of my functions follow, using the normal $ and jQuery 1.5 </code></pre> <p>Works for me now - the tricky part is just arranging the script calls and your function correctly. Hope this helps.</p>
 

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