jquery-endless-scroll icon indicating copy to clipboard operation
jquery-endless-scroll copied to clipboard

$ does not have method extend

Open dony585 opened this issue 12 years ago • 2 comments

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'

dony585 avatar May 31 '12 13:05 dony585

Why are you using noConflict?

jonstorer avatar May 31 '12 19:05 jonstorer

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.

dony585 avatar Jun 04 '12 13:06 dony585