Re: JavaScript onChange after onClick

2008-07-21 Thread cretzel
Hi Timo, thanks for that hint. Actually, we didn't prove these issues. We should give it a try ... Thanks Timo Rantalaiho wrote: Hello, Great that you could solve your issue, but I'll comment on a couple of things anyway. On Wed, 16 Jul 2008, cretzel wrote: We are doing validation

Re: JavaScript onChange after onClick

2008-07-20 Thread Timo Rantalaiho
Hello, Great that you could solve your issue, but I'll comment on a couple of things anyway. On Wed, 16 Jul 2008, cretzel wrote: We are doing validation via Ajax, so we decided to not to validate on each key press because of performance issues. Have you proved empirically (load testing,

Re: JavaScript onChange after onClick

2008-07-18 Thread cretzel
Okay, sorry, this wasn't really a Wicket-Problem but an IE-Problem. The Button in my application is actually a div and IE has problems to focus() divs (sometimes), so that when clicking the div, the focus is not removed from the text field and no onchange-event is fired. I managed it by giving

Re: JavaScript onChange after onClick

2008-07-16 Thread cretzel
Hi Timo, thanks for your reply. Anyway, if your intent to only validate when the textfield loses focus? If it would be OK to validate on each keypress, you could try using OnChangeAjaxBehavior in the TextField. We are doing validation via Ajax, so we decided to not to validate on each

Re: JavaScript onChange after onClick

2008-07-15 Thread Timo Rantalaiho
On Tue, 15 Jul 2008, cretzel wrote: I've got a Button and a TextField within a Form. The TextField uses an AjaxUpdatingBehavior for validation, which is fired onchange. The Button submits the form via Ajax onclick. In my case, sometimes the onchange event occurs after the onclick event (on the