eberon
14 years agoVisitor
Slight delay pattern for roSearchScreen?
Hello,
Total newbie here, guys!
Can anyone think of a pattern that would let me delay execution for a little while after a user has entered a character on roSearchScreen?
If I were at my day job programming a web application I would set an asynchronous timeout as soon as a key was pressed, then cancel the timeout if another key was pressed and re-set it again. If the timeout were reached, I would go ahead and execute a search.
I'm trying to be sensitive to the fact that I don't own the service I'm programming against, so I can never truly know how performant it will be or how tolerant they would be of several requests in rapid succession from the same client, from my program.
If no one is worried about this and everyone is implementing calling out to the Internet as soon as a "key" is pressed on roSearchScreens, that's fine and good to know, but I thought I'd ask...
Thanks!
Total newbie here, guys!
Can anyone think of a pattern that would let me delay execution for a little while after a user has entered a character on roSearchScreen?
If I were at my day job programming a web application I would set an asynchronous timeout as soon as a key was pressed, then cancel the timeout if another key was pressed and re-set it again. If the timeout were reached, I would go ahead and execute a search.
I'm trying to be sensitive to the fact that I don't own the service I'm programming against, so I can never truly know how performant it will be or how tolerant they would be of several requests in rapid succession from the same client, from my program.
If no one is worried about this and everyone is implementing calling out to the Internet as soon as a "key" is pressed on roSearchScreens, that's fine and good to know, but I thought I'd ask...
Thanks!