![Picture of guillaume luszack Picture of guillaume luszack](/graphics/unknown.gif)
guillaume luszack - 2007-09-27 06:17:44 -
In reply to message 2 from Manuel Lemos
Ok I'll try the ONSUBMITTING event.
Talking about subforms, when I have this inside
a much bigger form :
$form->AddInput(array(
"TYPE"=>"text",
"NAME"=>"pref_location",
"ID"=>"pref_location",
"SubForm"=>"form_add_location",
"MAXLENGTH"=>100,
"LABEL"=>"Enter a location"
));
$form->AddInput(array(
"TYPE"=>"submit",
"ID"=>"add_pref_location",
"NAME"=>"add_pref_location",
"SubForm"=>"form_add_location",
"VALUE"=>"Add location"
));
The submit button submits the whole form instead of just validating
the pref_location field. Am I missing something ?
By the way, how could I have this button validate the field and then
execute an AJAX function and then update a DIV in the page ?
Thanks.