我尝试了一些东西但没有得到任何东西..当我点击删除链接时,我必须得到一个确认框,但我没有得到它..有人可以建议我吗?
JSP
urlencrypt:url value="abc.action" htmlEscape="true" var="removeLink"/>
<td><a href="removeLink" onclick="confirmRemoveQuestion('${removeLink}')">
<fmt:message key="link.remove" /></a> </td>
javascript
<script type="text/javascript">
var confirmRemoveDialog;
var confirmOkUrl= ;
function setRemoveQuestionDialog()
{
var handleYes = function() {
window.location = confirmOkUrl;
this.hide();
};
var handleNo = function() {
this.hide();
};
var confDialogButtons = [ { text:"<fmt:message key="link.cancel"/>", handler:handleNo, isDefault:true},
{ text:"<fmt:message key="link.ok"/>",handler:handleYes }
];
confirmRemoveDialog = getConfirmOKDialog(confDialogButtons);
}
function confirmRemoveQuestion(url)
{
confirmOkUrl = url;
setRemoveQuestionDialog();
showConfirmDialog(confirmRemoveDialog, "<fmt:message key="removeLink.confirmMessage"/>");
}
</script>