Note that there are some explanatory texts on larger screens.

plurals
  1. PONoconflict using 2 JS versions
    primarykey
    data
    text
    <p>I am adding a script into my magento site and am getting protoype errors since this script uses a different version of JS</p> <p>I tried to do </p> <p>$.noConflict(); // Code that uses other library's $ can follow here.</p> <p>with no sucsess </p> <p>What would the best way to do a no conflict be?</p> <pre><code>&lt;script src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"&gt;&lt;/script&gt; &lt;script&gt; $(function() { $( "#accordion" ).accordion({ event: "click hoverintent" }); }); var cfg = ($.hoverintent = { sensitivity: 7, interval: 100 }); $.event.special.hoverintent = { setup: function() { $( this ).bind( "mouseover", jQuery.event.special.hoverintent.handler ); }, teardown: function() { $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler ); }, handler: function( event ) { var that = this, args = arguments, target = $( event.target ), cX, cY, pX, pY; function track( event ) { cX = event.pageX; cY = event.pageY; }; pX = event.pageX; pY = event.pageY; function clear() { target .unbind( "mousemove", track ) .unbind( "mouseout", arguments.callee ); clearTimeout( timeout ); } function handler() { if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) &lt; cfg.sensitivity ) { clear(); event.type = "hoverintent"; // prevent accessing the original event since the new event // is fired asynchronously and the old event is no longer // usable (#6028) event.originalEvent = {}; jQuery.event.handle.apply( that, args ); } else { pX = cX; pY = cY; timeout = setTimeout( handler, cfg.interval ); } } var timeout = setTimeout( handler, cfg.interval ); target.mousemove( track ).mouseout( clear ); return true; } }; &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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