kjh Report post Posted April 14, 2011 Do swf files have to be in the same folder as the chart html? The documentation seems to indicate that swf files need to be in the same folder as the chart html file. If I move the swf file from a “tempfiles” folder to a “dashboards” folder and change the html to specify the full path to the swf file the chart does not display. Here’s the folder structure: found\source\gui\dashboards: swf, js and other source code found\tempfiles: dynamically created html & xml files And html snip: var myChart = new FusionCharts("n:\found\source\gui\dashboards\Column2d.swf", "FusionCharts_1", "100%","100%","0","0"); I’d like to separate the source (swf & js) files from the dynamically created html & xml files, so that we do not write to the source folders. Another option would be to always copy the swf files to the tempfiles folder but I’d rather not do that. Locating the js files in the source folder are referencing full path in the html works. Thank you and apologies if answers are already posted. I searched but didn't find anything. Kevin Share this post Link to post Share on other sites
L_E Report post Posted April 19, 2011 No, they do not need to be. Your html file just needs to point to the correct location of the SWF and JS files. The documentation has a really simple, "build your first fusion chart" example. This is the quick example I use to test XML on my desktop before building the real thing: <html> <head> <title>My First chart using FusionCharts</title> <script type="text/javascript" src="../FusionCharts/FusionCharts.js"> </script> </head> <body> <div id="chartContainer">FusionCharts will load here!</div> <script type="text/javascript"> var myChart = new FusionCharts( "../FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1" ); myChart.setXMLUrl("Data.xml"); myChart.render("chartContainer"); </script> </body> </html> Share this post Link to post Share on other sites