struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anonymous (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-2431) How I can popup a javascript confirm dialog before s;url action
Date Tue, 21 Oct 2008 20:58:37 GMT

     [ https://issues.apache.org/struts/browse/WW-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]


    Resolution: Duplicate  (was: Not A Problem)
        Status: Resolved  (was: Closed)

> How I can popup a javascript confirm dialog before s;url action
> ---------------------------------------------------------------
>
>                 Key: WW-2431
>                 URL: https://issues.apache.org/struts/browse/WW-2431
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.11
>         Environment: windows xp, jdk 6.0.3, tomcat 6.0.14
>            Reporter: Tommy
>
> I want to add javascript before I execute s:url action, the confirmed message from user
decide whether further to trigger a s:url action
> The origin code:
>                     <s:url id="removeUrl" action="remove">
>                         <s:param name="id" value="id" />
>                     </s:url>
>                     <s:a href="%{removeUrl}" theme="ajax" targets="persons">Remove</s:a>
> I tried 'preInvokeJS' in s:a tag, it does popsup a confirm message, but user cannot terminate
the loading s:url action. 
> e.g. confirm('Are you sure you want to delete this item?')"     if a user a choose no
button, s:url remove action still be processed.
> Appreciated any idea for this issue, thanks in advance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message