# To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :
> The effect at the moment if you have a form with a number of input fields and
> a button which performs a "Done" or "Close" action. When the user inputs some
> data and then presses the button the callback for that last input is not
> invoked and the data is lost.
>
> It is not intuitive for a user to always press <TAB> or <CR> to complete
> input into a field as is required at the moment.
A workaround might involve using a posthandler to detect loss of focus
on the input field and performing whatever tasks are necessary to deal
with the input in that way.
My "fix" is to simply query all the Input fields in a form whenever
the "Done" button is pressed rather than rely upon the user pressing
Tab or Return, invoking the callback.
In fact, I rarely, if ever, use callbacks on Input objects. If I need
to do input validation, I tend to do it when the "Do it" button is
clicked rather than annoy the user over a typo prematurely.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed Jan 10 2001 - 07:03:17 EST