by prettyscripts on 2008-04-10 12:00:48
the function to get form values to submit is xajax.getFormValues().
to submit the form via click of a button:
Code:
<input type="submit" value="Submit" | |
onClick="xajax_function(xajax.getFormValues('formname'));" /> |
to submit part of the form, name the selected fields with the same prefix:
Code:
<input type="submit" value="Submit" | |
onClick="xajax_function(xajax.getFormValues('formname', 1, 'prefix'));" /> |
the second parameter is boolean indicating submitting disabled fields.
the full syntax for the function:
xajax.getFormValues(formID[,bSubmitDisabled[, prefix]]
reference of this post: here.