samedi 18 avril 2015

Jquery JSON call: Uncaught SyntaxError: Unexpected token :

I want my site to be able to retrieve steam item prices like below:


http://ift.tt/1Iqt2xw


Right now i have this code:



$.ajax({
type : "Get",
url : "http://ift.tt/1HEVhds",
data :"currency=3&appid=730&market_hash_name=" + steaminfo_inventory[3][index][7],
dataType :"jsonp",
jsonp: false,
success : function(data){
alert(data);},
});


I keep getting an error: Uncaught SyntaxError: Unexpected token :. It seems like i am still receiving the data, but i still get the error. When i click on the error in chrome i am seeing this output: {"success":true,"lowest_price":"0,06€","volume":"107,179","median_price":"0,06€ "}


Any help is appreciated Thanks.


Aucun commentaire:

Enregistrer un commentaire