-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I want a JavaScript event handler to programatically submit a form. This works well using form.performSubmit() (I want Tapestry's AJAX submit).
The tricky part is that the form being submitted is part of the zone that is being refreshed by the submit, while the element causing the submit is not. So referencing the form by its ID is out, since the form is assigned a new and different ID after each AJAX zone refresh. Calling click() on a hidden button is out for the same reason. I currently have stuff working by using document.forms[2] (there are currently three forms on the page), but that is a fragile hack. Any suggestions on how to improve this? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+uetgACgkQbmZsMyUPuXTmmQCg4Z50r8FDXo+EPL8WSQFEG5Lt t5QAoKPW6M87LyU4KW3bD1Xs1IHMWzoz =Vcmu -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org