开发者

Error .load(), jquery

I am trying to load a web page using jQuery and I receive th开发者_开发技巧is error

Webpage error details

Message: Permission denied Line: 3517 Char: 4 Code: 0 URI: http://localhost/js/jquery-1.3.2.js

And here is my code

<script language="javascript" type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){

    $('#test').load('http://wwww.yahoo.com');

});

</script>


<div id="test"></div>

Thanks Jean

[edit]

Some URLS do open, but the images are not displayed


Check this post. It has a solution for your problem, but unfortunatelly you cannot do it in just JS because you must write a simple proxy to pass the requests out of your domain.


You are using four Ws wwww in your url, use three of course:

$('#test').load('http://www.yahoo.com');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜