Hey,

I am trying to attach a _javascript_ onclick listener to an AjaxSubmit button. Basically, the button is a delete button but I only want it to be called when they have clicked “Yes” on a _javascript_ popup confirm window as follows:

                              <span jwcid="[EMAIL PROTECTED]:AjaxSubmit"

                                    listener="listener:onDelete"

                                    parameters="ognl:components.table.tableRow"

                                    updateComponents="ognl:{'limitations'}" value="Delete"

                                    >"return confirm('Are you sure you want to delete this limitation?')"/>

The _javascript_ ends up getting called properly; however, whether I confirm or not still causes the submit to occur. How do I avoid this? Thanks,

Andrew

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to