又是一个JS的问题`~~~急 一个截面,弹出一个窗口为了输入查询条件,当我关闭弹出窗口后,会自动触发页面的隐藏按牛(只是变的很小,看不到)可是问题来了,为什么有时候触发,有时候不触发,很奇怪的.这是为什么????????????????? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 子窗口 <script language="javascript"> function ReturnPage(){ var QueryArray =new Array(); var strValue; QueryArray[0]=document.all("ddlCompany").value; QueryArray[1]=document.all("txtclientcode").value; QueryArray[2]=document.all("txtclientref").value; strValue=QueryArray.join(","); window.returnValue=strValue;//strValue; //window.close(); } </script>父窗口: function windowOpen(){ var strType; var strUrl; var strTitle; var strValue; var getQueryArray; strUrl="ClientSearch.htm" strTitle="Query Dialog"; strType="dialogWidth=360px;dialogHeight=250px;center=yes;help=no;status=no;scroll = no"; strValue=showModalDialog(strUrl,strTitle,strType); if(strValue!=null) { getQueryArray=strValue.split(","); document.all("ClientCompanyName").value=getQueryArray[0]; document.all("ClientCode").value=getQueryArray[1]; document.all("ClientRefCode").value=getQueryArray[2]; } else { return; } document.getElementById("Bt_mid_Query").click();//bt_mid_query为隐藏的按牛. }帮看看~ document.getElementById("Bt_mid_Query").click()--------------------直接改为document.all("Bt_mid_Query").click();不刷新是因为这一句else{return;}代码运行到这里(假如符合条件),就不再执行你下面的那一句了.你要是一定要执行,上面这个else去掉 急---在线等:淘宝的那个给星级评论怎么做的? 参数不足,期待是1?求解决 asp.net检测用户是否可用 PrintDocument打印问题 烦,TabContainer中动态添加控件无法获取,麻烦各位进来看看 求一正则表达式 访问其他机器目录 source的名命空间是什么啊? 关于StoredProcedure的初级问题 急,在线等候——为什么ASP.NET没有办法启动? 动态生成的asp.net页面,怎么生成pdf文件 今天发现一个奇怪的问题
<script language="javascript">
function ReturnPage(){
var QueryArray =new Array();
var strValue;
QueryArray[0]=document.all("ddlCompany").value;
QueryArray[1]=document.all("txtclientcode").value;
QueryArray[2]=document.all("txtclientref").value;
strValue=QueryArray.join(",");
window.returnValue=strValue;//strValue;
//window.close();
}
</script>
父窗口:
function windowOpen(){
var strType;
var strUrl;
var strTitle;
var strValue;
var getQueryArray;
strUrl="ClientSearch.htm"
strTitle="Query Dialog";
strType="dialogWidth=360px;dialogHeight=250px;center=yes;help=no;status=no;scroll = no";
strValue=showModalDialog(strUrl,strTitle,strType);
if(strValue!=null)
{
getQueryArray=strValue.split(",");
document.all("ClientCompanyName").value=getQueryArray[0];
document.all("ClientCode").value=getQueryArray[1];
document.all("ClientRefCode").value=getQueryArray[2];
}
else
{
return;
}
document.getElementById("Bt_mid_Query").click();//bt_mid_query为隐藏的按牛.
}帮看看~
--------------------
直接改为
document.all("Bt_mid_Query").click();不刷新是因为这一句else
{
return;
}
代码运行到这里(假如符合条件),就不再执行你下面的那一句了.你要是一定要执行,上面这个else去掉