hi how to load any website website using ajax . I have created a page index.html and saved it on my window . when load this page the google page is not loaded on my browser. following codes are in my index.html page. please help me and tell me how to solve this problem
thanks in advance
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({ url:"http://www.google.com/", cache:false, success:function(output){
$("#middle").html(output);
}
});
});
</script>
</html>
<body>
<div id="middle">
</div>
</body>
</html>