Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d6y/delay_keyup_via_list_rest_wiring
https://github.com/d6y/delay_keyup_via_list_rest_wiring
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/d6y/delay_keyup_via_list_rest_wiring
- Owner: d6y
- Created: 2011-07-29T15:45:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-29T15:46:11.000Z (over 13 years ago)
- Last Synced: 2023-03-10T19:08:48.009Z (almost 2 years ago)
- Language: Scala
- Homepage:
- Size: 898 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Aim:
invoke ajaxCall for onkeyup events only after there's a 200ms pause between keypresses.Approach:
do it all in JavaScript and post the text to the server via REST.Demonstation:
sbt> jetty-run
The home page has a text field, and under the text field is the result of a Wiring-based list
of the words in your text. This will currently show List()Type in "hello world".
Notice the server log shows: Tokenized: List(hello, world)
Notice no change to the wiring, it still shows List()
Refresh the page or hit return, observe the List(hello, world) in the wired field.