So this function works in all other browsers except IE. I only have access to IE 8 so can't say if newer versions work or not. I don't have access to the PHP or how it's calling the SQL DB, so I can't say for sure it's the javascript. The alert never gets triggered in IE.
$.post( 'http://foo/geo/getGeoResultsByGeoId.php', {geoId: 1}, function(data){
alert('inside');
var DBinfo = $.parseJSON(data);
if(DBinfo.data.length == sites.length) {
for (var i=0; i<sites.length; i++) {
sites[i].votesUp = Number(DBinfo.data[i].votesUp);
sites[i].votesDown = Number(DBinfo.data[i].votesDown);
sites[i].mag = getMagnitude(Number(DBinfo.data[i].votesUp), Number(DBinfo.data[i].votesDown));
createGraph(sites[i]);
}
setMarkers(map, sites);
}
});