Load function in jquery
        Posted  
        
            by user345579
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user345579
        
        
        
        Published on 2010-05-19T22:51:08Z
        Indexed on 
            2010/05/19
            23:00 UTC
        
        
        Read the original article
        Hit count: 202
        
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
© Stack Overflow or respective owner