You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa" <da...@xs4all.nl> on 2004/01/31 21:39:25 UTC

Re: vs document.getElementById('tbodyForm').submit() (SOLVED)

Byrne, Steven wrote:
> I think the behavior is not browser dependent...I think it may even be
> part of the Javascript or HTML specification.  If you call form.submit,
> you want to do something like
> 
>    if (form.onsubmit) { // do I even have an onsubmit handler
>        form.onsubmit()
>    }
>    form.submit()
> 
> I have a vague recollection that one of the "on" event handler
> definitions allows you to return false to prevent the action from
> happening; I don't think that's the case with onsubmit, but it's worth
> being aware of and validate....
Whether vague or not, it's spot on. It works now
Thx,

Fermin
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org