How to receive json result using jquery ajax? -
i referred this link, no luck. when use following link in address bar, browser shows json data.
http://xxxx.xxx.com:1234/products.json // sample link
but when try following code,
$.ajax({ url : 'http://xxxx.xxx.com:1234/products.json', datatype: 'json', async: false, success: function(data) { alert( "test" ); }, error : function() { alert("sorry, requested property not found."); } }); it shows error message. wrong in method?
Comments
Post a Comment