THIS IS MY CODE
<html>
<head>
<script language="JavaScript" src="../FusionCharts/FusionCharts.js"></script>
<script LANGUAGE="JavaScript">
function updateMTDChart() {
window.alert("OPA");
var chartObj = getChartFromId("MTDChart");
chartObj.setDataURL("JSExample.xml");
}
</script>
</head>
<body bgcolor="#ffffff">
<BR>
<div id="Div_YTDChart" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
<param name="allowScriptAccess" value="always" />
<script type="text/javascript">
var Chart_YTDChart = new FusionCharts("../FusionCharts/Column3D.swf?registerWithJS=1","YTDChart","900","300","0","1");
Chart_YTDChart.setDataURL("JSExample.xml");
Chart_YTDChart.render("Div_YTDChart");
</script>
<BR>
<div id="Div_MTDChart" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
<script type="text/javascript">
var Chart_MTDChart = new FusionCharts("../FusionCharts/Column3D.swf?registerWithJS=1","MTDChart","900","300","0","1");
Chart_MTDChart.setDataURL("Data.xml");
Chart_MTDChart.render("Div_MTDChart");
</script>
<input Type="Button" Name="Teste" align="center" onclick="JavasCript:updateMTDChart();">
</body>
</html>
When i click on the button the chart is not updatting...
it enter in the function but does'nt change data.
What can i do?