Echilon

Updatepanel With Setxmlurl

Recommended Posts

I have web service which shows chart XML and an updatepanel on my page. I'm trying to add a button click event to find what the users entered in the updatepanel and set the XmlURL for the chart. The problem is, nothing's happening. I even tried with the setXMLData method in Firebug's console, but nothing. My code is:

var statsGraph = new FusionCharts('/Charts/Line2D.swf', 'chartContainer', '400', '300', '0', '1');
statsGraph.setXMLData('<?xml version="1.0" encoding="utf-8"?><chart caption="TMy caption" xAxisName="Date" yAxisName="Follow Count">  <dataset>	<set label="08 January 2011" value="119" />	<set label="09 January 2011" value="118" />  </dataset></chart>');
statsGraph.render('chartContainer');

And I have a div on the page:

<div id="chartContainer"></div>

 

I know the JavaScript fires and no errors are shown. Any ideas?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now