cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <>
Subject Re: keypress events
Date Fri, 18 Jan 2008 09:30:50 GMT
Edward Elhauge wrote:
> I would like some guidance on what the best way is to attach an  
> 'onkeypress' event handler to a Cocoon CForm Widget?
> My use case is that I want to set a 'form dirty' flag as users type  
> data into my forms. I've been using the 'fd:on-value-changed'  
> handler for that purpose but it doesn't catch the case where a user  
> types data into a field and then directly clicks on a button that  
> would exit the Web page.

I've been having a similar problem:
- text field (product quantity) with on-change that triggers update of  
the totals
- on-change fires only when the user leaves the text field
- if the user jumps directly to the submit button, the two ajax  
requests collide and bad things happen (mostly the change to the text  
field is lost, but I've seen errors too)

I haven't solved it yet.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message