I just tried to load data from www.somedomain.com
's #SomeText
Tag in #Data Tag with jQuery Ajax
I used :
<script>
$(function () {
$("#Data").load('http://www.somedomain.com/index.html#SomeText');
});
</script>
but webpage text doesn't load and in Google Chrome's JavaScript console I got this error:
XMLHttpRequest cannot load http://www.somedomain.com/index.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9154' is therefore not allowed access.