| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 358 人关注过本帖
标题:为什么输出是空的。555.asp不为空的。
只看楼主 加入收藏
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
结帖率:76.71%
收藏
 问题点数:0 回复次数:3 
为什么输出是空的。555.asp不为空的。
<script type="text/javascript" language="javascript">
   var http_request = false;
   function makeRequest(url,obj)
{
   http_request = false;
           if (window.ActiveXObject) {
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
                } catch (e) {
                             try {
                       http_request = new ActiveXObject("Microsoft.XMLHTTP");
                                 } catch (e) {}
                             }
                                     }

                    if (!http_request) {
                        alert('Giving up :( Cannot create an XMLHTTP instance');
                        return false;
                                       }
    http_request.onreadystatechange = alertContents;
    http_request.open('GET', url, true);
    http_request.send(null);


                    function alertContents() {
                          document.getElementById(obj).innerHTML="<font size=2>正在加载数据,请稍候...</font>";
                        if (http_request.readyState == 4) {
                                 if (http_request.status == 200) {
                          document.getElementById(obj).innerHTML=http_request.responseText;
                                                                  } else {
                                 alert('There was a problem with the request.');
                                                                         }
                                                           }
                                              }
}


<body onload="makeRequest("555.asp","bb")" id="body">
<div id="bb"align="center" width=930  height="100%"></div>
</body>
搜索更多相关主题的帖子: 输出 
2010-06-05 15:03
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
<script type="text/javascript" language="javascript">
   var http_request = false;
   function makeRequest(url,obj)
{
   http_request = false;
           if (window.ActiveXObject) {
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
                } catch (e) {
                             try {
                       http_request = new ActiveXObject("Microsoft.XMLHTTP");
                                 } catch (e) {}
                             }
                                     }

                    if (!http_request) {
                        alert('Giving up :( Cannot create an XMLHTTP instance');
                        return false;
                                       }
    http_request.onreadystatechange = alertContents;
    http_request.open('GET', url, true);
    http_request.send(null);


                    function alertContents() {
                          document.getElementById(obj).innerHTML="<font size=2>正在加载数据,请稍候...</font>";
                        if (http_request.readyState == 4) {
                                 if (http_request.status == 200) {
                          document.getElementById(obj).innerHTML=http_request.responseText;
                                                                  } else {
                                 alert('There was a problem with the request.');
                                                                         }
                                                           }
                                              }
}


<body onload="makeRequest("555.asp","bb")" id="body">
<div id="bb"align="center" width=930  height="100%"></div>
</body>

ASP讨论QQ群:251346273
2010-06-05 15:15
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
一样能被 人家看到真实的 url   

ASP讨论QQ群:251346273
2010-06-05 15:20
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
<script type="text/javascript" language="javascript">
   var http_request = false;
   function makeRequest(url,obj)
{
   http_request = false;
           if (window.ActiveXObject) {
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
                } catch (e) {
                             try {
                       http_request = new ActiveXObject("Microsoft.XMLHTTP");
                                 } catch (e) {}
                             }
                                     }

                    if (!http_request) {
                        alert('Giving up :( Cannot create an XMLHTTP instance');
                        return false;
                                       }
    http_request.onreadystatechange = alertContents;
    http_request.open('GET', url, true);
    http_request.send(null);


                    function alertContents() {
                          document.getElementById(obj).innerHTML="<font size=2>正在加载数据,请稍候...</font>";
                        if (http_request.readyState == 4) {
                                 if (http_request.status == 200) {
                          document.getElementById(obj).innerHTML=http_request.responseText;
                                                                  } else {
                                 alert('There was a problem with the request.');
                                                                         }
                                                           }
                                              }
}

</script>

<body>
<div id="bb" name="bb"  onClick="makeRequest(this.value,'bb')">
<iframe src=555.asp width=800 height=6000 scrolling="no"></iframe>
</div>
</body>

[ 本帖最后由 ysf0181 于 2010-6-5 16:05 编辑 ]

ASP讨论QQ群:251346273
2010-06-05 16:04
快速回复:为什么输出是空的。555.asp不为空的。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027450 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved