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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -