You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2010/09/20 08:13:39 UTC

attach a client side xhr form submit listener

  I have a script which I would like executed whenever a form is 
submitted. the form is submitted via an XHR request, ie it has a zone 
attribute. the form is also within a zone which gets updated from time 
to time meaning it's dom id is changed by tapestry.

has anyone overcome these issues?

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


Re: attach a client side xhr form submit listener

Posted by LLTYK <LL...@mailinator.com>.
You can listen for the FORM_PREPARE_FOR_SUBMIT_EVENT or
FORM_PROCESS_SUBMIT_EVENT in prototype, for before the zone gets updated. Or
if you use a mixin on the form (or any component in the zone) the mixin
initialization gets run on zone update with the new id.
-- 
View this message in context: http://tapestry-users.832.n2.nabble.com/attach-a-client-side-xhr-form-submit-listener-tp5549246p5549966.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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