[flexcoders] Re: Determining if there has been any user input on a page

2007-02-02 Thread dean_w_schulze
Thanks for the responses.

I was thinking along the lines of Jari's solution.  That involves 
adding an event handler for each control which isn't too much work.

I like Ben's solution because it handles the case where a user makes a 
change and then undoes the change leaving the control with no change.  
It also doesn't require adding extra event handling.  

The problem I see with the extra event handling is that someday someone 
will add or modify a control and forget about the event handling and 
then user input will get lost.




[flexcoders] Determining if there has been any user input on a page

2007-02-01 Thread dean_w_schulze
In Flex is there a way to determine if a user has made any input to any 
control on a page without having to check each individual control?  My 
app. makes use of several TabNavigators with several tabs in each and I 
would like a way to tell which tabs have changes, if any, when the user 
clicks Submit instead of reading the state of every control on every 
page.

What I'm hoping for is something like an uber-event handler that I 
could register every control on a page with, in addition to the 
control's individual event handler.  In the uber-event handler I could 
simply record that something had changed on that page and maybe keep 
track of which controls need to be read on Submit.

Thanks.