Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.