jquery - IE not receiving data when receiving json response -


am running javascript function gets data rest server , returns function. on chrome , firefox working on version of ie(why not suprised) function doesn't work...below code

function gettotalcounts() {     var swings = '';     var serviceurl = 'http://urldata.com/getdata';     $.ajax({         type: "get",         cache: false,         contenttype: "application/json; charset=utf-8",         url: serviceurl,         data: "{}",         async: false,         datatype: "json",         success: function (data) {             jquery.each(data.interactiveblocklist, function (i, val) {                 swings = new array(val.activationday, val.grassblockcount, val.grasssquaremeters, val.instagramcount, val.publictweetcount, val.swingcount);                 var gettotalcounts;             });             grassification(swings)         }     }); } 

any idea on doing wrong?

i not surprised problem come fact sending string "{}" data. try send empty object instead:

data: {}, //no quotes 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -