fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
837 stars 176 forks source link

$ does not have method extend #27

Open dony585 opened 12 years ago

dony585 commented 12 years ago

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'

jonstorer commented 12 years ago

Why are you using noConflict?

dony585 commented 12 years ago

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.