Hi all!

I have the following code:

<s:a id="removeProject" theme="ajax" notifyTopics="/submitProjectForm"
       loadingText=" " targets="workspaceAjaxContent" executeScripts="true"
       onclick="var a = confirm('Are you sure you want to do this?');
       if (a) {
           var link = document.getElementById('removeProject');
           link.href = '${removeProjectUrl}';
           link.onclick = '';
           link.click();
           return false;
       }">
   <fmt:message key="Project.remove"/>
</s:a>

The project is successfully removed and I get the right result, but it is shown in the whole page, not in the "workspaceAjaxContent" target. That is, it seems like if click() event doesn´t take care about the "targets" attribute.

Any suggestion?

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to