You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ted Steen <te...@gmail.com> on 2005/08/23 11:27:24 UTC

Javascript confirm alert.

Hi!
I want to make the user confirm that he/she really wants to go on with
some action.
So if a @DirectLink is pressed I want a javascript confirm box to popup.

How is this done in the "tapestry way"?
Do I have to make my own IScript etc. or is it already done?
-- 
/ted

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Javascript confirm alert.

Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
Well, the Tapestry way is to keep it simple. : )

Ted Steen wrote:
> Hi,
> I'm converting a medium "toy" project to tapestry mostly for learning.
> I tend to do as much the "tapestry way" so that I know how to do it.

Re: Javascript confirm alert.

Posted by Ted Steen <te...@gmail.com>.
Hi,
I'm converting a medium "toy" project to tapestry mostly for learning.
I tend to do as much the "tapestry way" so that I know how to do it.


On 8/23/05, Filip S. Adamsen <fi...@stubkjaer-adamsen.dk> wrote:
> Hello,
> 
> I find it even simpler to just include the "onclick" attribute as an
> informal parameter. Is anything obstructing you from taking this approach?
> 
> -Filip
> 
> lars.borup@email.dk wrote:
> > Hi,
> >
> > I tend to write a Renderer to do so.. All it needs to do is to add a
> > "onclick" attribute like   onclick="return confirm('Really?')"
> >
> > If false is returned the href is not executes (followed)
> >
> > Darn simple! :-)
> >
> > regards, Lars Borup Jensen
> >
> >
> > On Tue, 23 Aug 2005 11:27:24 +0200, Ted Steen wrote
> >
> >>Hi!
> >>I want to make the user confirm that he/she really wants to go on
> >>with some action. So if a @DirectLink is pressed I want a javascript
> >>confirm box to popup.
> >>
> >>How is this done in the "tapestry way"?
> >>Do I have to make my own IScript etc. or is it already done?
> >>--
> >>/ted
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
> > --
> > Lars Borup Jensen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> 


-- 
/ted

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Javascript confirm alert.

Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
Hello,

I find it even simpler to just include the "onclick" attribute as an
informal parameter. Is anything obstructing you from taking this approach?

-Filip

lars.borup@email.dk wrote:
> Hi,
> 
> I tend to write a Renderer to do so.. All it needs to do is to add a
> "onclick" attribute like   onclick="return confirm('Really?')"
> 
> If false is returned the href is not executes (followed)
> 
> Darn simple! :-)
> 
> regards, Lars Borup Jensen
> 
> 
> On Tue, 23 Aug 2005 11:27:24 +0200, Ted Steen wrote
> 
>>Hi!
>>I want to make the user confirm that he/she really wants to go on 
>>with some action. So if a @DirectLink is pressed I want a javascript 
>>confirm box to popup.
>>
>>How is this done in the "tapestry way"?
>>Do I have to make my own IScript etc. or is it already done?
>>-- 
>>/ted
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> --
> Lars Borup Jensen
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 

Re: Javascript confirm alert.

Posted by la...@email.dk.
Hi,

I tend to write a Renderer to do so.. All it needs to do is to add a
"onclick" attribute like   onclick="return confirm('Really?')"

If false is returned the href is not executes (followed)

Darn simple! :-)

regards, Lars Borup Jensen


On Tue, 23 Aug 2005 11:27:24 +0200, Ted Steen wrote
> Hi!
> I want to make the user confirm that he/she really wants to go on 
> with some action. So if a @DirectLink is pressed I want a javascript 
> confirm box to popup.
> 
> How is this done in the "tapestry way"?
> Do I have to make my own IScript etc. or is it already done?
> -- 
> /ted
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


--
Lars Borup Jensen


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org