jquery-endless-scroll
jquery-endless-scroll copied to clipboard
$ does not have method extend
I am a beginner to rails. I am working on project and I am using jQuery.no_conflict() also .. When I use this plugin I get the error
Uncaught TypeError: Object function $(element) { if (arguments.length > 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element = document.getElementById(element); return Element.extend(element); } has no method 'extend'
Why are you using noConflict?
The above conflict is resolved but i have a new problem.The code does not generate any errors but it still does not work for me .. When I seperately run it in the console to check whether it is working, it returns just a number and does nothing.
jQuery(window).endlessScroll({ fireOnce: true, fireDelay: false, callback: function(){ alert('hi'); }, }); 1880
It just gives a number as above and the number is different and greater when we run it for the next time.
Thank you in advance.