Sign in to follow this  
xmfail

Error In Loading Data In Ie8 But Not In Firefox/chrome

Recommended Posts

I have get a problem when using fusionchart.

 

js code:

var myChart1 = new FusionCharts("js/fusioncharts/charts/Pie3D.swf", "myChartId", "350", "300", "0", "1");

myChart1.setDataXML(obj5);

myChart1.render("content1");

 

html code:

 

<td colspan="3"><div id="content1" style="text-align: center;"></div></td>

 

it works in firefox/chrome, but In IE8, it display"Error in loading data".

 

note: it works on apache server.

 

i need help! !!

 

anybody can help me ?thank you.....

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Could you please confirm the FusionCharts version you are using?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

thank you very much! the version is 3.1

 

Awaiting for your response.

 

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Could you please confirm the FusionCharts version you are using?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

 

If you get a "Error in Loading Data" message in your chart, it means that FusionCharts could not find XML data at the specified URL. In that case,please check the following:

 

1.Check if you've actually provided Data URL or Data String. If you do not provide either, FusionCharts looks for a default Data.xml file in the same path. Now, if that is also not found, it shows the "Error in Loading Data" error.

 

2. If you're using Data URL method, paste this URL in your browser to check if it's returning a valid XML. Make sure, there are no scripting or time-out errors and a valid XML is being returned. Also make sure that the XML isn't intermingled with HTML content. The data provider page should return a clean XML only - not even HTML <head> or <body> tags.

 

3. Make sure you're passing relative URLs for Data URL, and not absolute URLs. To restrict cross site security attacks, FusionCharts doesn't allow colons in dataURL (starting v3.0.5). So you cannot specify dataURL as http://.../path/file.ext any more.

 

4. When using Data URL method, make sure that the SWF File and data provider page are on the same sub-domain. Due to Flash's sandbox security model, it cannot access data from external domains, unless otherwise configured.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks ,I am not use setDataURL,i am usr setDataXML

this is my code:

 

Js code:

 

var myChart1 = new FusionCharts("js/fusioncharts/charts/Pie3D.swf", "myChartId", "350", "300", "0", "1");

myChart1.setDataXML(obj5);

myChart1.render("content1");

 

html code:

 

<td colspan="3"><div id="content1" style="text-align: center;"></div></td>

 

it works well in firefox/chrome, but In IE8

 

Hi,

 

Thanks for your response.

 

 

If you get a "Error in Loading Data" message in your chart, it means that FusionCharts could not find XML data at the specified URL. In that case,please check the following:

 

1.Check if you've actually provided Data URL or Data String. If you do not provide either, FusionCharts looks for a default Data.xml file in the same path. Now, if that is also not found, it shows the "Error in Loading Data" error.

 

2. If you're using Data URL method, paste this URL in your browser to check if it's returning a valid XML. Make sure, there are no scripting or time-out errors and a valid XML is being returned. Also make sure that the XML isn't intermingled with HTML content. The data provider page should return a clean XML only - not even HTML <head> or <body> tags.

 

3. Make sure you're passing relative URLs for Data URL, and not absolute URLs. To restrict cross site security attacks, FusionCharts doesn't allow colons in dataURL (starting v3.0.5). So you cannot specify dataURL as http://.../path/file.ext any more.

 

4. When using Data URL method, make sure that the SWF File and data provider page are on the same sub-domain. Due to Flash's sandbox security model, it cannot access data from external domains, unless otherwise configured.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Before this, I use it like this in jsp page,deploy in tomcat or weblogic,It works well in all of them..

 

but this time,i use it in php,deploy in apache ,it works well in firefox/chrome, but In IE8

 

 

 

Share this post


Link to post
Share on other sites

Before this, I use it like this in jsp page,deploy in tomcat or weblogic,It works well in all of them..

 

but this time,i use it in php,deploy in apache ,it works well in firefox/chrome, but In IE8

 

Hi,

 

Thanks for your response.

 

 

If you get a "Error in Loading Data" message in your chart, it means that FusionCharts could not find XML data at the specified URL. In that case,please check the following:

 

1.Check if you've actually provided Data URL or Data String. If you do not provide either, FusionCharts looks for a default Data.xml file in the same path. Now, if that is also not found, it shows the "Error in Loading Data" error.

 

2. If you're using Data URL method, paste this URL in your browser to check if it's returning a valid XML. Make sure, there are no scripting or time-out errors and a valid XML is being returned. Also make sure that the XML isn't intermingled with HTML content. The data provider page should return a clean XML only - not even HTML <head> or <body> tags.

 

3. Make sure you're passing relative URLs for Data URL, and not absolute URLs. To restrict cross site security attacks, FusionCharts doesn't allow colons in dataURL (starting v3.0.5). So you cannot specify dataURL as http://.../path/file.ext any more.

 

4. When using Data URL method, make sure that the SWF File and data provider page are on the same sub-domain. Due to Flash's sandbox security model, it cannot access data from external domains, unless otherwise configured.

 

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Could you please send us a scaled down sample to look into the issue?

 

Awaiting for your response.

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