`

在使用eXtremeTable实现数据库的删除操作时,如何设置先用脚本询问是否删除。

阅读更多
问题描述:
在使用eXtremeTable实现数据库的增删改操作时,遇到这样一个问题,就是删除某一条数据时,需要通过脚本询问是否删除当前这条数据,如果不同意删除,则不提交请求.

解决方案:
<ec:column title="Delete" property="delete" filterable="FALSE">  
  <a href="${pageContext.request.contextPath}/delAction.do?id=${user.userId}"
onclick="javascript:if(confirm('确实要删除吗?')) window.location=this.href;return false;"  target="new">  
      <img border="0" src="${pageContext.request.contextPath}/images/table/compact/clear.gif"></img>  
  </a>  
</ec:column>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics