Delete confirm message not working with ajax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anish5000
    New Member
    • Dec 2009
    • 2

    Delete confirm message not working with ajax

    Hi,

    I have a page

    abc.jsp...(the page includes strut2 tags s: )
    Code:
    <s:url id="delete" action="delete" >	             
      <s:param name="proj.id" value="id" />
    </s:url>
    <s:a href="%{delete}"  onclick="return confirm('Are you sure?');" theme="ajax" notifyTopics="selected_Project" formId="projectForm">Delete</s:a>

    Now the issue over here is,
    when i click on the delete button i get a window asking permission for "ok" or "cancel" but even if i click on cancel it executes the action, that is delete.
    The code work if i remove the notifyTopic. But i need notifyTopics to publish.


    Please advice exactly what code should be putin to get this working.



    Regards,
    Anish
    Last edited by Frinavale; Dec 3 '09, 04:07 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • anish5000
    New Member
    • Dec 2009
    • 2

    #2
    Hi,

    I am still waiting for the reply.....


    Please advice.


    Regards,
    Anish

    Comment

    Working...