Load function in jquery
- by user345579
Hi,
I am relatively new to jquery and would like to know why the below code wouldn't work. I am trying to access the content from a file residing on my site and not outside. Is it because I have the jquery lib loading from google and not my site? The error message that I get in IE browser is "Access Denied". I am confused why the access is denied if I am trying to load a file from the same server and even same folder.
<html>
<head>
<script type="text/javascript" language="JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" language="JavaScript">
$(document).ready(function(){
$("#response").load("http://www.mydomain.com/loadme.php?route=links/getlinks&path=2");
});
</script>
</head>
<body>
<div id="response" style="border: 1px solid #000;height:500px;"> </div>
</body>
</html>
any one please help me.
thanks