I have this snippet in my html... Fusion Charts requires I feed it an XML to create a graph
<script type="text/javascript">
var myChart = new FusionCharts("/Content/Fusion_Charts/Charts/Column3D.swf", "myChartId", "470", "350", "0", "0");
myChart.setDataURL("/XML/Graph/?list=<%=Model.list%>");
myChart.render("Graph");
</script>
So in my XMLController I simply have a method like this
public ActionResult Graph(FusionChartsLi开发者_JAVA百科st list)
{
return View(list);
}
So my question is... how can I get the object to actually populate when passing it as url parameter??
thanks in advance.
Call the setDataXML
Javascript method with the raw XML string instead.
精彩评论