Hi, In fact we should never do an ajax submit on the 'onkeydown' event. 'onkeydown' is a typical event that is only very usefull on the client and I think that it's main purpose was to allow the cancellation of a key stroke. You can interprete it more like a 'beforekey' event. I don't think there is a usecase where you really want to use the onkeydown event, except maybe in the event that you want to hold down your key and that each character is submitted to the server. But then I think that this should never be allowed because somebody might just bring your server down.
But if you really want to support the onkeydown event then it should be done the way it is done in wicket.extensions.ajax.markup.html.autocomplete.wicket-autocomplete.js. in there the value of the field is retrieved by using it's ID and not by passing a reference. In that case it seems that all characters are sent to the server even when using the 'onkeydown' event. But this behaviour could not be the same on all browsers. (I only tested it with Firefox) Byeee... -- View this message in context: http://www.nabble.com/onkeydown-or-onkeyup-t1506344.html#a4097293 Sent from the Wicket - User forum at Nabble.com. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
