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.
Tobia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]