Reputation: 21
$(document).ready(function(e) {
$('body').load("http://www.sitemetre.net/_face/kaydet.php");;
});
or like this usage not working
$(document).ready(function(e) {
$.get('http://www.sitemetre.net/_face/kaydet.php', function(res){
$('body').html("coming: "+res)
})
});
can you check here problem http://referanslar.net/_face/deneme.php when i check from console. get or post workingin status coming ok but writen red text what is the problem?
Upvotes: 1
Views: 127
Reputation: 276306
You can't make cross domain AJAX requests without the site you're making the request from explicitly allowing it. The site must be on the same domain, protocols, ports and subdomains must match too.
XMLHttpRequest cannot load http://www.sitemetre.net/_face/kaydet.php. Origin http://referanslar.net is not allowed by Access-Control-Allow-Origin.
Possible solutions:
Upvotes: 2