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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -