$. Ajax ({
Type: 'post ',
URL: path + "/JSON/fusionchartsaction_searchimg1.action ",
Data: 'Data = '+ data,
Success: resfusionchartsimg1
});
/**
* Set the image region ID to "img1"
* Responsetext ['img1'] isProgramThe graphic data required by the returned fusioncharts graph.
*/
Fucntion resfusionchartsimg1 (data ){
If (data ){
VaR response = eval ("(" + Data + ")"); // convert to a JSON object
VaR responsetext = response ['analysismodule']; // obtain the required data object from the returned JSON data
Document. getelementbyid ("img1"). innerhtml = "<p>" + responsetext ['img1'] + "</P> ";
VaR img1 = new fusioncharts (path + "/fusioncharts/charts/fcf_column2d.swf", "img1id", "175", "90 ");
Img1.setdataxml (responsetext ['img1']);
Img1.addparam ("wmode", "Opaque"); // set flase to the underlying layer, which does not cover other floating layers.
Img1.render ("img1 ");
}
}