$.ajax({
type: 'POST',
url: path +"/json/fusionChartsAction_searchImg1.action",
data: 'data=' + data,
success: resfusionChartsImg1
});
/**
* 设定图片区域ID为“img1”
* responseText[‘img1’]为程序返回的fusionCharts图形需要的图形数据
*/
fucntion resfusionChartsImg1(data){
if(data){
var response= eval("("+data+")");//转换为json对象
var responseText = response['analysisModule']; //从返回的JSON数据里取得所需的数据对象
document.getElementById("img1").innerHTML = "<p>"+responseText[‘img1’] + "</p>";
varimg1 = new FusionCharts(path +"/FusionCharts/Charts/FCF_Column2D.swf","img1Id","175","90");
img1.setdataxML(responseText[’img1‘]);
img1.addParam("wmode","Opaque");//设置Flase在底层,不会遮住其他的浮动层
img1.render("img1");
}
}