I have a form containing a button which uses onclick to submit the form.The
button is like:
<input type="button" name="insertButton" onclick="submitForm( this.form);"
id="insertButton" value="Update" />
And SubmitForm is as this,
submitForm = function( form ){
if( form.onsubmit() !== false )
{
form.submit();
}
}
After clicking the button, submitForm will cause
Tapestry.form.onFormSubmit(..) throw exception because onFormsubmit need to
check event using following codes
if(!evt || dj_undef("target", evt)) {
dojo.raise("No valid form event found with argument: " + evt);
return;
}
It's because calling form.onsubmit() does not pass such an event.
Regards,
Eric
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]