Clientscripting: Trigger traverse programmatically [message #1064346] |
Tue, 18 June 2013 15:59  |
Eclipse User |
|
|
|
We do single-sourcing. Our application features extensive validation of user input, for example: Consider a field used to input dates. This field has a maximum lenght of 4 and only digits are allowed. Also, if the input is correct and the maximum number of digits is entered, the focus should be set to the next field.
In RCP this is done using various listeners. As this is very bad for performance (every keystroke would be transfered to the server) we build some generic javascript functions which can validate the given input against a regex. This functions are registered once as a ressource. The code of the clientlistener is just a call of these functiones with the regex as a parameter.
The validation works well, but we do not know how to implement the automatic traverse.
We did not find documentation for the javascript part, so we couldn't check if we can fire a traverse event in javascript.
How could a automatic traverse with clientscripting work?
thanks in advance
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04119 seconds