Client Side JavaScript Charting error
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Client Side JavaScript Charting error Expand / Collapse
Author
Message
Posted 9/2/2007 5:55:54 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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


  Post Attachments 
JS error-_flash_addCallback.jpg (5 views, 137.39 KB)

Post #2210
Posted 9/3/2007 4:26:08 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 12:15:43 AM
Posts: 2,228, Visits: 540
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

Post #2216
Posted 10/17/2007 10:34:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #2727
Posted 10/20/2007 4:34:40 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 12:15:43 AM
Posts: 2,228, Visits: 540
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
Post #2765
Posted 1/27/2008 10:35:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #4148
Posted 1/28/2008 10:20:01 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 12:15:43 AM
Posts: 2,228, Visits: 540
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
Post #4182
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:55am


Execution: 0.063.