You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by umainb <ma...@ssa.gov> on 2008/05/08 17:17:20 UTC
and javascript
Hello,
I have a link in my jsp
<html:link page="/doNotVerifyList.do?action=delete" paramId="phone"
paramName="resultsList" paramProperty="phoneNumber"><bean:message
key="admin.console.verify.numbers.delete"/></html:link>
which deletes a record from the list of numbers.
When the user clicks on the link above, we need a javascript popup "Are you
sure you want to delete the number?" with "OK" and "Cancel"
How I can achieve that?
Thanks.
--
View this message in context: http://www.nabble.com/%3Chtml%3Alink%3E-and-javascript-tp17127304p17127304.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: and javascript
Posted by Laurie Harper <la...@holoweb.net>.
umainb wrote:
> Hello,
>
> I have a link in my jsp
>
> <html:link page="/doNotVerifyList.do?action=delete" paramId="phone"
> paramName="resultsList" paramProperty="phoneNumber"><bean:message
> key="admin.console.verify.numbers.delete"/></html:link>
>
> which deletes a record from the list of numbers.
>
> When the user clicks on the link above, we need a javascript popup "Are you
> sure you want to delete the number?" with "OK" and "Cancel"
>
> How I can achieve that?
Use html:link's onclick attribute to invoke the popup dialog just as you
would with vanilla HTML. html:link supports all the Javascript event
hook attributes you'd expect:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org