开发者

jQuery Update and Scroll like Polling

开发者 https://www.devze.com 2022-12-21 04:13 出处:网络
Looking for something written in jQuery which all开发者_如何学Goows polling or a plugin which would allow data updates similar to this website.

Looking for something written in jQuery which all开发者_如何学Goows polling or a plugin which would allow data updates similar to this website.

Anyone got any ideas of something like this in jQuery ? Or how to write something ?


You can prepend the div first with display none using preepend() function. And then for the slide animation use $("#div-1").slideToggle("slow");

For update your list you can set an ajax function to check periodically with setInterval() javascript function and call prepend function with the new line.

0

精彩评论

暂无评论...
验证码 换一张
取 消