Re: [Tacos-devel] confirm message
I found a solution : [EMAIL PROTECTED]:AjaxEventSubmit" updateComponents="ognl:{'AppContentPrimary'}" action=""
function beforeDelete()
{
var message = '';
if (confirm(message))
{
document.
Re: [Tacos-devel] confirm message
Well, Thanks everyone for the help! I'll take a deeper look into my code. If I found a solution, I will send it.Charles-AndreOn 6/3/06, Sam Gendler <[EMAIL PROTECTED]> wrote: So show us what you are getting in your browser. In the end, tapestrysends code to your browser, and that code is cl
Re: [Tacos-devel] confirm message
So show us what you are getting in your browser. In the end, tapestry sends code to your browser, and that code is clearly not doing what you want it to do, so debug that, not tapestry. Once you figure out what is wrong with the rendered code, it is usually easy enough to figure out what is wrong
Re: [Tacos-devel] confirm message
Hi Sam, Thank you for your help. I tried your exemple, but the request is still send : [EMAIL PROTECTED]:AjaxLinkSubmit" updateComponents="ognl:{'batchSection'}" action="" effects="template:{highlight:{batchSection:'[255,255,184], 0, 500'}}"> Createdojo.event.connect(dojo.
Re: [Tacos-devel] confirm message
OK, I finally broke down and tested it and this code most definitely works: http://www.microsoft.com/"; id="confirm" >Click Me dojo.event.connect(dojo.byId("confirm"), "onclick", function(e) { var value = confirm('message'); alert(value); if (!value) { e.pr
Re: [Tacos-devel] confirm message
I've used the very code that Jesse provided with no issues (although I used preventDefault() instead of stopEvent(e). You did remove your code from the onclick handler directly in the tag, didn't you? --sam On 6/2/06, Charles-André Martin <[EMAIL PROTECTED]> wrote: > > > Thanks for
Re: [Tacos-devel] confirm message
Thanks for the help, I tried it with IE and the request is still send. I don't have any more idea how it could work. My only chance is to invoke a AjaxEventSubmit _javascript_ function. This is a strange problem, as if nobody ever wanted to display a confirm message ! Ma
Re: [Tacos-devel] confirm message
Oh That's because there is no event to stop when you embed it directly in the tag like that :) A better approach would be to add a tag somewhere in your document (or use the @Script component to manage the js for you )