开发者

Error .load(), jquery

开发者 https://www.devze.com 2022-12-20 16:07 出处:网络
I am trying to load a web page using jQuery and I receive th开发者_开发技巧is error Webpage error details

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

精彩评论

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