jQuery.ajax error: Unexpected token ":" -


i trying function make web request , retrieve json data, keep getting same error: "uncaught syntaxerror: unexpected token :"

this have setup right now:

jquery.noconflict();  (function($) {     $(document).ready(function(){         $.ajax({             url: 'http://[website url]/json/',             context: this,             datatype: "jsonp",             contenttype:  "application/json"         }).done(function(response){            alert("here");//this meant testing purposes--the code never seems far         });     }); }(jquery)); 

i feel i'm close getting things setup correctly apparently i'm still missing something. tried using json instead of jsonp did not work since i'm calling different domain i'm on. json data setup correctly can tell:

{"name":"[value]","estimated time":"[time estimate]"} 

am missing inside $.ajax? or there wrong setup of json data?


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -