Hi !

How can I add confirmation function to an AjaxSubmit button in an AjaxForm
? If I use
<input jwcid="@tacos:AjaxSubmit"  onclick="return confirm('Are you sure?');"
...>
the confirmation popup comes up, but if I click on cancel, the form is
submitted. It's the same  if I specify 'submitNormal="ognl:true"
If I try to use
<input jwcid="@Submit"  onclick="return confirm('Are you sure?');" ...>
then the situation is a little bit strange. At first, the popup comes up,
but no matter what am I clicking, it aborts the form post. At the second
time it works as expected. Is there any body who saw similar behaviour? Or
know a simple fix for it ?


BR,

Zsombor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to