jsp - sucess msg in alert not working in ajax calling? -
$.ajax({ type: "post", url: 'columnchart.do', contenttype:"application/json; charset=utf-8", // data: mappinginfo, datatype:"text", success : function(msg) {
alert("wrong sssusssssername"); $.each(data.jsonarray, function(index) {alert(index); $.each(data.jsonarray[index], function(key,value) { tmp = "['" + key + "', " + value + "],"; receiveddata += tmp; alert("receiveddata: " + receiveddata); }); }); alert(receiveddata.substring(0, 34)); chart.series[0].setdata([receiveddata.tostring().substring(0, 34)]); } });
Comments
Post a Comment