Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Fernando Padilla
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 tha

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Onno Scheffers
I'd guess the problem is that the LinkSubmit adds its own onclick-handler before your mixin gets a change to add it, so the ordering is wrong. If the ordering is wrong, stopping events or default behavior in Javascript won't do much good. Maybe you can play around with your Confirm mixin by adding

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
Does anyone have a confirm mixin (or other js mixin) applied to a LinkSubmit component? If so, howd you do it? Zack Thiago H. de Paula Figueiredo wrote: > > On Thu, Feb 5, 2009 at 9:21 AM, zack1403 wrote: > >> If you read up the thread a bit you would see that that was the last test >> that

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 5, 2009 at 9:21 AM, zack1403 wrote: > If you read up the thread a bit you would see that that was the last test > that was asked to see what was working. People have pasted in that link 3 > times without reading anything else from the thread! I'm sorry, but, at least in my Gmail, th

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
If you read up the thread a bit you would see that that was the last test that was asked to see what was working. People have pasted in that link 3 times without reading anything else from the thread! I already understand how to work with tapestry and js! My issue is applying my confirm or othe

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread Thiago H. de Paula Figueiredo
On Thu, Feb 5, 2009 at 6:34 AM, 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

Re: Confirm("are you sure want to delete") in LinkSubmit

2009-02-05 Thread zack1403
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