MzTree1.0的小问题 能否实现如下的功能:(1)先从数据库读取数据(2)在更具focus()展开要制定的节点!在FireFox下可以实现,但在IE中不知道为什么,就是不行!这是什么原因!大家看了要留言哦!期待。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 代码如下:main.jsp<%@ page language="java" import="java.util.*" pageEncoding="gbk"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><% String userName = (String)request.getSession().getAttribute("userName"); String userType = (String)request.getSession().getAttribute("userType");%><% request.setAttribute("decorator", "none"); response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>通讯资源管理系统</title> </head> <frameset cols="200,*" frameborder="yes" border="5" framespacing="5" borderColor="#6EC3C9" > <frame src="tree.jsp" name="leftFrame" scrolling="no" id="leftFrame" title="leftFrame" /> <frame src="mainright.jsp" name="mainFrame" id="mainFrame" title="mainFrame" /> </frameset> <noframes> <body> </body> </noframes></html>这个就是要操作的代码 var pnode=parent.leftFrame.window.tree.currentNode.parentNode; alert(parent.leftFrame.window.tree.currentNode.id); parent.leftFrame.location.reload(); //刷新tree.jsp页面 location.replace("http://localhost:8080/ppcm/userInfo.jsp?user_id=wxq&pid=SMFJHJK"); // 右面页面的刷新 //专门存放左边的页面 var psid= pnode.sourceIndex; //alert(psid); var pid = psid.substr(psid.indexOf("_")+1); parent.leftFrame.window.tree.focus(pid); 关于浏览器读取缓存的问题 如何查看别人加压了的javascripr代码? 选中输入框中内容怎样才能不被删除 求一简单正则表达式 无边框的弹出页面无法RESIZE!请帮忙看看。 用javascript怎么实现x="aaaaadada"中d转换成a? 用JAVASCRIPT打开数据库后如何处理不安全的问题? 怎么通过onchange事件改变一个按钮的onclick的值 紧急问题。。。。在线。(在asp那里也发了个) js可以修改xml里的数据吗? var value={} 和接下来的这个是什么类型的? 帮忙看一下这一小段脚本。修改哪个属性就可以让层收缩??
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String userName = (String)request.getSession().getAttribute("userName");
String userType = (String)request.getSession().getAttribute("userType");
%>
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>通讯资源管理系统</title>
</head>
<frameset cols="200,*" frameborder="yes" border="5" framespacing="5" borderColor="#6EC3C9" >
<frame src="tree.jsp" name="leftFrame" scrolling="no" id="leftFrame" title="leftFrame" />
<frame src="mainright.jsp" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
这个就是要操作的代码 var pnode=parent.leftFrame.window.tree.currentNode.parentNode;
alert(parent.leftFrame.window.tree.currentNode.id);
parent.leftFrame.location.reload(); //刷新tree.jsp页面
location.replace("http://localhost:8080/ppcm/userInfo.jsp?user_id=wxq&pid=SMFJHJK"); // 右面页面的刷新
//专门存放左边的页面
var psid= pnode.sourceIndex;
//alert(psid);
var pid = psid.substr(psid.indexOf("_")+1);
parent.leftFrame.window.tree.focus(pid);