Re: XForms: input fields

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 25 Mar 98 06:01:35 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have to tab out of an input field for it to be registered. I have a three
> input fields and enter data into all three of them and the cursor is on the
> third field and I have entered data into this field. I click on a button to
> 'process' the fields. The third field's data is not accepted unless I tab out
> of it. Are there any functions that I can call to process it.

fl_get_input() should do it. You can also set FL_RETURN_ALWAYS or
FL_RETURN_CHANGED with the fl_set_input_return() function to modify
the default behavior of the Input object.

I personally rarely use callback functions for handling Input objects
but rather tend to process all input when the "do it" action
(generally the press of a button) takes place. Then I use the
fl_get_input() functions to read the input and at that point I do
whatever processing is necessary.

Refer to the manual section on the Input object for more details.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/