<html>
<head>
<script type="text/javascript" src="../resource/jquery-1.4.js"></script>
<script type="text/javascript">
var u = 'http://hq.sinajs.cn/list=CU1107,CU1108,CU1109,CU1110,CU1111'
$("#test").load(u);
})
</script>
</head><body>
<div id="test">abc</div>
</body>本来应该是远程网页的内容,结果显示为空白,请问是哪里有问题?

解决方案 »

  1.   

    'http://hq.sinajs.cn/list=CU1107,CU1108,CU1109,CU1110,CU1111'
    这个地址是js文件吧
      

  2.   

    你所有的操作都要写在 page的load里面
    $(function(){
     $("#test").load(u);
     })})
      

  3.   

    http://www.cnblogs.com/me-sa/archive/2010/05/20/getJSON-In-My-Eyes.html
      

  4.   

    晕,你什么事件响应load事件啊!
    事件都没有,怎么会给你load啊!
      

  5.   

    $(document).ready(function() 这句没写dom ready 就load
      

  6.   

    jQuery(document).ready(function() {
    jQuery.ajax({
        url:"<%=request.getContextPath()%>/createZbmc",
        type: 'POST',
        dataType: 'text',
        timeout: 1000*30,
        beforeSend: function(){
    },
    complete: function(){
    },
        success: function(resposeText){
          
        },
        error: function(){
            alert('代码表加载错误');
        }
    });
    });
      

  7.   

    $.getJSON('http://hq.sinajs.cn/list=CU1107,CU1108,CU1109,CU1110,CU1111', function(data){
    alert(data);
    alert('abc');
    });这样还是不行啊。
      

  8.   

    jquery的load很容易出错, 存在浏览器兼容性问题; 你换用post或ajax试试吧