I would review the Form javascript. I bet that there are already ways
to hook into the form validation/submittion flow, so that you can add a
listener there, and do a popup before the form submits..
Then once you figure out how to do that, I would probably create a new
component that adds that functionality, I might call it
"ConfirmFormSubmit". So that you encapsulate the registering of that
form submit listener, etc etc.. ( you would have to learn how form
fields hook into the form validation javascript, etc etc ).
<t:form>
.. inputs ..
.. submits ..
<t:confirmFormSubmit/>
</t:form>
zack1403 wrote:
Hey guys sorry to resurrect this issue. I just got around to fixing this bug
:) When I try an inline confirm with javascript on a LinkSubmit (t5)
component it will always submit the form. I know that javascript cant
assure order of events. Is this basically an issue that doesnt have a
solution? Or I guess the solution is no confirm with javascript?
Zack
Martijn Brinkers (List)-2 wrote:
Could you check if the Event.stop(event) works when used directly from
the onclick event handler?
So in you page tml file use something like:
<input .... onclick="Event.stop(event); alert('event was stopped');" />
Martijn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org