  | |  | change flag | change flag 2004-03-11 - By Jonathan Yapp
Back i am doing a record view that has all editable components.
i am using a the change listener to set a changed flag for each variable, and then an Unfocus listener. when the unfocus event fires, it checks to see if the change flag has been set, and if so then it updates the field in question. this is to avoid a Save button, or submitting the whole record everytime a small change is made.
the problem with this scheme is that for every field i have to write two listeners, which is a pain. is there any built-in flag to check if a component's value has been changed? i dont want to just use the change event, because it fires on every keystroke.
thanks in advance,
Jonathan Yapp
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106673 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |