1 Star 0 Fork 1

yihoc/WEBWMS

forked from gujiejing/WEBWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
searchso.js 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
wisdom 提交于 2017-11-03 23:31 . upupup new alll
window.onload=initPage;
function initPage(){
ahrefs = document.getElementById("showSearchResult").getElementsByTagName("a");
console.log(ahrefs.length);
for(var i=0;i<ahrefs.length;i++){
aaa=ahrefs[i];
aaa.onclick=function(){
var id1 = this.id;
console.log(id1);
showSODetail(id1);
}
}
}
function showSODetail(id1){
console.log("showSODetail:"+id1);
createShowSODetail=createRequest();
if(createShowSODetail==null){
alert("Unable to create request");
}else{
var url="searchsof.php?id="+id1+"&show=true";
createShowSODetail.onreadystatechange=showSODetail1;
createShowSODetail.open('GET',url,true);
createShowSODetail.send(null);
}
}
function showSODetail1(){
if(createShowSODetail.readyState==4){
if(createShowSODetail.status==200){
console.log("responseText->"+createShowSODetail.responseText);
var respText=eval("("+ createShowSODetail.responseText +")");
if(respText.result==0){
alert("错误,原因为:"+respText.reasons);
}else if(respText.result==1){
var table1 = respText.table;
$("#showDetail").html(table1);
$(function() {
$( "#showDetail" ).dialog({
width: 1050,
modal: true
});
});
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/yihoc/WEBWMS.git
git@gitee.com:yihoc/WEBWMS.git
yihoc
WEBWMS
WEBWMS
master

搜索帮助