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

Posted by
ぴろり
Posted at
2010/11/06 18:23
Trackbacks
関連記事 (0)
Post 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.

この記事を Delicious に追加する   このエントリーをはてなブックマークに追加  

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