GitXplorerGitXplorer
m

typewatch

public
6 stars
5 forks
3 issues

Commits

List of commits on branch master.
Unverified
49e100bcd5aef456fcf4c33816f1bca21126d8ba

Merge pull request #4 from Zetten/EmptyInput

committed 11 years ago
Unverified
45d203530e299e2972f2f2ecff6464710e9c7a4c

Allow callback to fire when input is emptied

ZZetten committed 12 years ago
Unverified
66ff3f87a32b31b15f85137dc37828d9d6d0be54

Moved source to src.

committed 14 years ago
Unverified
db3f77b4d05e7b9ca29fd9d17370ed5f5afe21f4

Initial commit.

committed 14 years ago

README

The README file for this repository.

h1. TypeWatch

A jQuery Plugin that allows to determine when a user has finished typing in a textbox. First implementation by Denny Ferrassoli, original website: http://www.dennydotnet.com/post/TypeWatch-jQuery-Plugin.aspx

h3. Usage

$('input.search').typeWatch()

There are a few configuration options:

  • callback - The function to callback after the user has "finished" typing. Default void.
  • wait - The number of milliseconds to wait before the plugin considers that typing has finished. Default 750.
  • highlight - Aesthetics, determines if the text should be highlighted when the textbox receives focus. Default true.
  • captureLength - The minimum amount of characters necessary before allowing the event to fire. Default 2.

Example with options:

$('input.search').typeWatch({
  callback: callbackFunction() {
    // do something here
  },
  wait: 500,
  highlight: false,
  captureLength: 1
})

h3. License

Dual licensed under the MIT and GPL licenses. http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html