better connect an event using dojo.event.connect to do such stuff -
you'll have to then do a e.preventDefault() to prevent the click (instead of
return false)
For instance,
dojo.event.connect(dojo.ById('link'), "onclick", function(e) { if
(!confirm('Are you sure?') e,preventDefault(); } );
On 5/18/07, Zsombor <[EMAIL PROTECTED]> wrote:
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
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
-------------------------------------------------------------------------
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