hi,
I am facing issue to access the json object in FF and chrome . But in ie 8 its working fine. i am able to get the json object fine in ie8 but when i use FF and chrome i am getting null josn object. please find below my code.
$.ajax({ type: "POST", beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader('Content-Type', 'application/json');
},
url: 'http://www.specialdeals.com/api.php?type=rest&format=json&method=deals.getCategoryList&appkey=3b99dfd5e97f76d8b86fb12374c065bf&sd_sig=0172279b3ec084b74896a9cebcb6f4f2',
dataType: 'json',
data: null,
contentType: "application/json",
async: false,
success: function (deal1) {
alert(deal1);
//var data = $.toJSON(deal1);
//alert(data);
}
});
i am trying to access the deals from specialdeals.com using his api API reference - http://www.specialdeals.com/dev.php?cityid=us_orange_county#reference-cities