You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ausias vives <au...@yahoo.co.uk> on 2004/07/07 09:40:13 UTC
how to create a confirm link?
Hi all,
I need to perform a delete option for some items list,
and I like to have a javascript confirm message
previous to the listener call. I'd like to do that as
a normal link, not a button.
Is there a way to do that? or have I to work it out a
solution from scratch?
Thank in advance.
Ausias
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: how to create a confirm link?
Posted by Paul Ferraro <pm...@columbia.edu>.
The approach is the same as for a button. Try this:
<a jwcid="@DirectLink" listener="ognl:listeners.delete"
parameters="ognl:object.id" href="#" onclick="return self.confirm('Are
you sure you want to delete this item?')">Delete</a>
Paul
ausias vives wrote:
>Hi all,
>
>I need to perform a delete option for some items list,
>and I like to have a javascript confirm message
>previous to the listener call. I'd like to do that as
>a normal link, not a button.
>
>Is there a way to do that? or have I to work it out a
>solution from scratch?
>
>Thank in advance.
>
>Ausias
>
>
>
>
>
>___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: how to create a confirm link?
Posted by Robert Zeigler <rd...@u.arizona.edu>.
You're probably using a direct link; it allows informal parameters.
so, add something like the following to the direct link:
<a href="" jwcid="@DirectLink" ... onclick="return confirm('Are you
sure?');">Delete</a>
Robert
ausias vives wrote:
> Hi all,
>
> I need to perform a delete option for some items list,
> and I like to have a javascript confirm message
> previous to the listener call. I'd like to do that as
> a normal link, not a button.
>
> Is there a way to do that? or have I to work it out a
> solution from scratch?
>
> Thank in advance.
>
> Ausias
>
>
>
>
>
> ___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org