Sign in to follow this  
mmjensen

Problem with reading from XML

Recommended Posts

Hi guys

 

 

 

I have a problem with my code:

 

< div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.

 

< script type="text/javascript">

 

var myChart = new FusionCharts("../FusionCharts/Column3D.swf", "myChartId", "900", "300", "0", "0");

 

myChart.setDataURL("../db/data.xml");

 

myChart.render("chartdiv");

 

< /script>

 

< /body>

 

< /html>

 

 

 

(I did the extra space, to be able to show it here.)

 

The root folder db is the only folder with the rights I need to create the xml file. So I have to read from this folder, but I get Error in loading data. It works if I place the xml in the same folder as the page, and change the dataurl to: myChart.setDataURL("../db/data.xml");

 

 

 

Am I doing something wrong or what's wrong?

 

 

 

Thanks in advance

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

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.

Please confirm, whether the root path that you are specifying for the XML file is mentioned correctly.

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We are glad that your issue is resolved.

Keep smiling and keep FusionCharting. :)

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