no !
use
dojo.event.connect instead.

I haven't a running T4 application under my eyes, so take a look to the
src/html.
You should be able to seethe generated code.
But is you put an hidden @Submit into your application and then call its
click method it's a quicker solution.

kiuma

On 7/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

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]


Reply via email to