I referred this link, but with no luck. When I use the following link in the address bar, the browser shows json data.
http://xxxx.xxx.com:1234/products.json
// Only a sample link
But when I try the following code,
$.ajax({
url : 'http://xxxx.xxx.com:1234/products.json',
dataType: 'json',
async: false,
success: function(data) {
alert( "test" );
},
error : function() {
alert("Sorry, The requested property could not be found.");
}
});
It always shows the error message. What is wrong in my method?