|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/17/2008 5:11:16 AM
Posts: 17,
Visits: 23
|
|
| Hello! I am very excited about the JavaScript/AJAX-like capabilities of your chart products. But, I have a problem in our requirements, and a JavaScript error in the client side updates of the charts. I have placed the swf-files in a different sub-domain/domain then the web-pages which renders the charts. Acording to the licensing, this should be possible, right? When I do, here is what I get: - First time around (when the page loads), all charts are rendered perfecly. - After first page load, calling the setDataXML throws a JavaScript error. (see attachment) To make it easy for you to reproduce just add a domain in your demo at http://www.fusioncharts.com/Demos/JS/Index.html :
//any sub-domain or domain added here gives the error next time the user calls setDataXML; var gc_swf_path = "http://charts.backbone.se/swf/"; var chart1 = new FusionCharts(gc_swf_path + "MSColumn3D.swf", "chart1Id", "600", "400", "0", "1"); //Initialize chart with empty data. We'll feed it data on the chart's FC_Rendered event. chart1.setDataXML("<chart></chart>"); chart1.render("chart1div");
Is there a workaround or fix?
I can fix the JavaScript, if you point me in the right direction.
Some background notes which might be of interest: We have multiple sites running our crm-application. I would rather not have to distribute the JavaScript and the swf files to all sites, some of them behind firewalls. I would like to give our clients nice charts, no matter what server they are running our application from. At the same time I want control of how the chart components are used, from what domains, etc. I want our clients to use our interface to your components (as a backend). I don't want to give them full access to your components, just because I need to include them under their website. I am sure that is in your interest too. Kind regards, /Hans
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
| Hi, The Flash Player security settings prevent cross site SWF loading and then providing it data. As such, this error is raised.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/17/2007 10:30:24 AM
Posts: 1,
Visits: 1
|
|
I have the same issue. I have tried using crossdomain.xml fix but this doesn't work either. Any more ideas??
moremadness2001
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
You can build a proxy page on your server, which actually gets the data from remote page and then conveys it locally to the chart.
For example:
Chart --> Your proxy page --> Remote server --> back to your proxy page --> Chart.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/27/2008 10:54:34 PM
Posts: 2,
Visits: 4
|
|
Hi - Is it possible that this crossdomain error would apply with Fusion Charts 3 but not with the free version. I'm only having this issue with the new version, but maybe that's because it is written with the more recent version of Action Script?
Thanks
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
Hi,
It could be because of that - however, I'm not really sure. But FusionCharts Free is in AS1 and FusionCharts v3 in AS2.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|