I have a html page in which i am taking out the data of static json file which is renamed as .js file and put up some where on a local server say 10.211.20.62:8080/case1/county_json.js
i am using the code which is working properly in ie 6, 7, 8 but not in google chrome, firefox and other browsers.
Javascript code
function setfilter() {
$.getJSON('http://10.211.20.62:8080/case1/county_json.js', function (data) {
}).error(function(jqxhr, textStatus, errorThrown) {
alert(errorThrown);
});
}
$(document).ready(function () {
jQuery.support.cors = true;
setfilter();
});
what should be the problem? PLEASE HELP!