简体   繁体   中英

Jquery plugin qTip - scrollLeft is not a function

I am trying to make use of qTip JQuery plugin .

I have tried to implement it but I get an error reported by firebug.

f(window).scrollLeft is not a function
[Break on this error] (function(f){f.fn.qtip=function(B,u){var...asses:{tooltip:"qtip-blue"}}}})(jQuery);

Please have a look at my setup .

What am i doing wrong?

I viewed source on your page and it looks like the jQuery version your using is older than what qTip requires.

http://craigsworks.com/projects/qtip/docs/#requirements

jQuery version 1.2.6 and above

http://174.132.101.73/~dandy/tester/jquery.js

jQuery 1.2.3

update and you should be good.

You should wait until the DOM is loaded before trying to attach qtip to it, so wrap your code in:

$(function() {
    // your code here
});

Also check the version requirements as Samuel points out.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM