I am using prototype and jquery, plus I'm creating a slide with another plugin which requires jquery. Now try jQuery.noConflict ()
, but still does not work.
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('#slides').slides({
play: 5000,
pause: 2500,
hoverPause: true
});
});
This is the error that gives me the chrome and it does not work the slide.
Uncaught RangeError: Invalid array length
Object.extend.shift prototype.js:464
d.extend.dequeue jquery.min.js:16
d.fn.extend.dequeue jquery.min.js:16
d.extend.each jquery.min.js:16
d.fn.d.each jquery.min.js:16
d.fn.extend.dequeue jquery.min.js:16
d.extend.speed.e.complete jquery.min.js:16
d.fx.step jquery.min.js:16
g jquery.min.js:16
d.extend.tick
Is this a problem of variable scope? Did you tried removing the "var" next to j to declare j as global? Hope that helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.