jQuery plugin which filres an event when scroll-bar comes colse to the end

Posted by
ぴろり
at
Nov 06,2010 18:23
Trackbacks
Trackbacks (0)
Post Comment
Post a comment
Category
Software

This plugin can supply an event handler that fires when scroll-bar comes close to the end of objects. A good example is twitter's timeline. Try out to scroll the timeline below with paying your attentions to scroll-bar, you will see that the continuous timelines are added automatically when scroll-bar comes colse to the end of page.

Post to your del.icio.us

Example of source codes

jQuery('#textarea').whenScrollBottom (function () {
	// some processes
	this.restartScrollBottom();
});

Method references

jQuery.whenScrollBottom (func [, option])
Specify the functions that fires when scroll-bar comes close to the end of objects. option arguments are parameters to configure the behaviors and omittable. In current version, span parameter can be specified.
HTMLObject.restartScrollBottom ()
whenScrollBottom methos expresses to reset to fire the event again. After Invoked the event, whenScrollBottom doesn't invoke it again because of duplicated calling. If you need replay the event, please call this method in your function.

misc.

  • Working confirmed on Mozilla Firefox 3.6.12、Microsoft Internet Explorer 8.0
  • Need jQuery 1.2.3 above
  • Licence is same to jQuery, MIT or GPLv2

Related articles/Trackbacks

No Related article/Trackback

How to trackback to this article ?

Post your comment

 
 (Anonymousable/Required/Public)
 (Anonymousable/Required/Private)
 (Required)
Because of avoiding the comment spam, please fill with ランダムな数字 CAPTCHAについて