研究在输入页面信息时未点保存就点其他菜单时弹出提示信息的问题 一个新增或者编辑页面,在填写了部分或全部信息后,没有保存信息,就点击系统中的其他模块,会导致当前页面的信息丢失。能不能实现这么一个功能,在点击其他菜单时会出现一个提示,提醒用户呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用户点击后 肯定会通过servlet中转到另一个页面,也就是进行拦截,这样的话就是跳转前 先检查用户是否在这个编辑页面,如果在这个编辑页面 就进行提示操作! 用Javascript给系统其他模块的按钮或者超链接给点击事件注册一个函数,函数里调用confirm方法询问用户是否要去 <c:forEach var="menu" items="${menuList}"> '<DSTreeRoot text="${menu.menuName}" open="true" href="null">'+ <c:forEach var="subMenu" items="${menu.menuList}"> '<DSTree text="${subMenu.menuName}" open="false" href="null" target="mainFrame" treeId="ContractParty_MANAGE">'+ <c:forEach var="subMenu2" items="${subMenu.menuList}"> '<DSTree text="${subMenu2.menuName}" open="false" href="${basePath}${subMenu2.inputValue}" target="mainFrame" treeId="ContractParty_MANAGE">'+ '</DSTree>'+ </c:forEach> '</DSTree>'+ </c:forEach> '</DSTreeRoot>'; </c:forEach>左侧的js 菜单是这样实现的, 我在'<DSTree text="${subMenu2.menuName}" open="false" href="${basePath}${subMenu2.inputValue}" target="mainFrame" treeId="ContractParty_MANAGE">'+ 中加了个onClick 加载就报错了 这个肯定不行啊,你这个用的是第三方标签,谁知道它输出的时候是用什么输出的啊?你要是这么改,估计要看标签生成HTML的源代码了。 js怎么实现文本框中的颜色变化 Spring 疑惑! ssl双向认证失败,但是将配置设为单向的正常 struts2中程序运行时显示找不到action中的方法!!! 周末散分了 在线求助高手,编JSP查询的SQL问题,100分 spring不能为action注入首字母大写的bean吗?(使用truts-spring-plugin自动装配) 200分求MyEclipse的Struts配置?(急) 如何在多个War包中使用同一个Session 想知道到底有多少公司用到ejb,j2ee,rmi? 文本框数字格式问题 Strust2 是否支持引用properties文件?
'<DSTreeRoot text="${menu.menuName}" open="true" href="null">'+
<c:forEach var="subMenu" items="${menu.menuList}">
'<DSTree text="${subMenu.menuName}" open="false" href="null" target="mainFrame" treeId="ContractParty_MANAGE">'+
<c:forEach var="subMenu2" items="${subMenu.menuList}">
'<DSTree text="${subMenu2.menuName}" open="false" href="${basePath}${subMenu2.inputValue}" target="mainFrame" treeId="ContractParty_MANAGE">'+
'</DSTree>'+
</c:forEach>
'</DSTree>'+
</c:forEach>
'</DSTreeRoot>';
</c:forEach>
左侧的js 菜单是这样实现的, 我在'<DSTree text="${subMenu2.menuName}" open="false" href="${basePath}${subMenu2.inputValue}" target="mainFrame" treeId="ContractParty_MANAGE">'+ 中加了个onClick 加载就报错了