Sign in to follow this  
smashik

In IE FusionChart uses Data.xml instead of specified DataURL for all except one dynamically added charts

Recommended Posts

Hi,

 

 

 

The bug is always reproducable on IE 7, Windows XP SP2, Flash Player 9. Firefox and Safari are working fine.

 

 

 

I am adding several fusion charts dynamically on a page using FusionCharts.js.

 

Here is the code:

 

 

 

for (var i = 0; i < count; i++)

 

{

 

chartsArea.innerHTML += "

";

 

 

 

var chart = new FusionCharts("Charts/LogMSLine.swf", "ChartId" + i, "300", "300", "0", "1"); // registerforjs=0 - no help too

 

chart.setDataURL(chartUrls);

 

chart.render("chartdiv" + i);

 

}

 

 

 

I have inserted code into getSWFHTML method to track swf html. Here it is:

 

 

 

First chart:

 

 

 

 

Second chart:

 

 

 

 

So the dataURL is passed correctly to the chart.

 

 

 

When I sniffer http traffic I see that the second chart is querying:

 

"GET /getsectordata.php?sector=Infrast/Utilities&queryId=FSE&params=10/12/2007,31/12/2007,100,50 HTTP/1.1"

 

which is correct.

 

 

 

But the first chart is querying:

 

"GET /Data.xml HTTP/1.1"

 

which is wrong. And as a result first chart displays "Error in loading data."

 

 

 

When I load 5 charts - the last one got loaded fine, the rest 4 - loading Data.xml

 

 

 

Could you please help me with this issue?

 

 

 

Thank you,

 

Sergei.

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
Sign in to follow this