function getModify(liveid){
var randomnum = Math.floor(Math.random()*(1+100-0)+0);
var xmlhttp;
try{
xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
}catch(e){
try{
xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
}catch(e){
try{
xmlhttp= new XMLHttpRequest();
}catch(e){}
}
}
if(liveid!=""){
xmlhttp.open("get","/programEdit.do?action=getid&liveid="+liveid+"&dir="+randomnum);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4){
if(xmlhttp.status==200){
//在这里显示修改的div
showPopup1();
var data=xmlhttp.responseText;
var arr=data.split(";");
document.forms[2].program.value=arr[0];
document.forms[2].plead.value=arr[1];
document.forms[2].director.value=arr[2];
document.getElementById("img2").src=arr[3];
document.forms[2].film_pic.value = arr[3];
document.forms[2].proremark.value=arr[6];
document.forms[2].pid.value=arr[7];
myarr=arr[7];
if(arr[4]==1){
document.getElementById("zbpdModify").style.display = "block";
document.getElementById("videoModify").style.display = "none";
document.getElementById("videosourceModify").style.display = "none";
tree2=new dhtmlXTreeObject("treeboxbox_tree2","100%","100%",0);
tree2.setImagePath("../../codebase/imgs/csh_bluebooks/");
tree2.enableCheckBoxes(1);
tree2.enableThreeStateCheckboxes(true);
tree2.loadXML("../../codebase/tree10.xml");//下面对应的是tree8
}
/*这下面是 视频源 555 的 */
if(arr[4]==3){
document.getElementById("zbpdModify").style.display = "none";
document.getElementById("videoModify").style.display = "none";
document.getElementById("videosourceModify").style.display = "block";
tree13=new dhtmlXTreeObject("treeboxbox_tree13","100%","100%",0);
tree13.setImagePath("../../codebase/imgs/csh_bluebooks/");
tree13.enableCheckBoxes(1);
tree13.enableThreeStateCheckboxes(true);
tree13.loadXML("../../codebase/tree15.xml");//下面对应的是tree11
}
/*这上面是 视频源 555 的*/
if(arr[4]==2){
document.getElementById("zbpdModify").style.display = "none";
document.getElementById("videoModify").style.display = "block";
document.getElementById("videosourceModify").style.display = "none";
tree3=new dhtmlXTreeObject("treeboxbox_tree3","100%","100%",0);
tree3.setImagePath("../../codebase/imgs/csh_bluebooks/");
tree3.enableCheckBoxes(1);
tree3.enableThreeStateCheckboxes(true);
tree3.loadXML("../../codebase/tree9.xml");//下面对应的是tree7
getModify("")
}
}else{
alert("wrong!");
}
}
}
xmlhttp.send(null);
return;
}
var _arr=eval(myarr);
//给已经选择的下拉框赋值.
document.forms[2].videolist.length=0;
//不成功是因为少了个eval
for(var i=0;i<_arr.length-1;i+=2){
with(document.forms[2].videolist){
options[options.length]=new Option(_arr[i],_arr[i+1]);
}
}
}
String encrypt=form.getEncrypt()==null?"":form.getEncrypt();
String path=form.getPath()==null?"":form.getPath();
String server=form.getServer()==null?"":form.getServer();
String master=form.getMaster()==null?"":form.getMaster();
String fs=form.getFs()==null?"":form.getFs();
if("".equals(master) | "".equals(seedid))
seedid="Invalid url";
else
seedid="http://"+master+"/"+seedid+"?fs="+fs;
message = videoname+","+videotype+","+big+","+uploadtime+","+seedid+","+encrypt+","+path+","+server;
System.out.println(message);
ctx.response().setContentType("text/html;charset=GBK");
ctx.response().getWriter().write(message);
ctx.forwardByName("");
return;
分享到:
相关推荐
XMLHTTP无刷新自动实时更新数据 来源:bbs.okajax.com
XmlHttp手册XmlHttp手册XmlHttp手册XmlHttp手册XmlHttp手册
最通用的定义为:XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。 来自MSDN的...
配合JavaScript可以实现页面数据在无刷新下的定时数据更新,如果应用在聊天室、文字直播上可以取得较好的视觉效果。 使用范例: vb中下载页面源代码的方法: Dim XmlHttp As Object Set XmlHttp = CreateObject(...
利用XMLHTTP无刷新添加数据之Post篇.chm利用XMLHTTP无刷新添加数据之Post篇.chm
最通用的定义为:XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。 来自MSDN...
XMLHTTP类源码,可以开发模拟POST,GET等提交,非常强大简单
介绍xmlhttp比较的详细
XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。
在我的理解中,XMLHTTP控件就相当于一个浏览器:向网站发送http请求(POST或GET),然后取得返回数据。 有些人总认为编写关于WEB入侵的程序需要很高的编程技术,其实通过XMLHTTP对象可以轻易地完成这类程序。下面我...
asp数据抓取程序,asp+xmlhttp抓取远程数据到数据库
XmlHttp是一套可以在java script、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。来自MSDN的解释:XmlHttp提供...
最通用的定义为:XmlHttp是一套可以在javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。 来自MSDN的...
xmlHttp中文参考手册,纯中文,为java后台程序员开发方便而上传
以前写的一个xmlhttp提交数据的类模块,能有效地解决xmlhttp组件卡死问题,可用于,制件网络投票程序,网络信息收集程序
ASP.NET后台代码实现XmlHttp跨域访问
XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。 XmlHttp提供客户端同http...
易语言xmlhttp简单应用源码,xmlhttp简单应用
最通用的定义为:XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言中通过http协议传送或从接收XML及其他数据的一套API。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。 来自MSDN的...