I have used jQuery ajax in my html pages.
$.ajax({
url: 'search/' + page + '.html',
dataType: 'text',
success: function(data) {
$(".searchData").html(data);
$(".searchData").show("slow");
$(".searchImage").hide("slow");
},
error: function() {
$(".searchImage").show("slow");
$(".searchData").hide("slow");
}
});
There is no server. I am accessing my page like file:///C:/Documents%20and%20Settings/sss/Desktop/rrr/search.html
and it works fine in Firefox, but it's not working in Chrome and other browsers, it shows:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
How to do that?