Sign in to follow this  
bmcwhorter

Upgrading from Fusioncharts to Fusioncharts XT broke flash chart in IFrame

Recommended Posts

Hi, we have certain cases where we may put a chart inside an iframe that is injected into the DOM dynamically via javascript.  Prior to upgrading to fusioncharts xt, this worked fine in flash.  Now, this only works for the javascript versions of the charts.  Unfortunately, the debugger is not very much help.  Here is the error message given:

 

id
"23091255"  
message
"#23091255 BarChart::DataHandler~update Warning >> Renderer update was postponed due to async loading."  
nature
"RuntimeException"  
source
"FusionCharts::DataHandler~update"

 

 

Then this message comes up:

 

       
id
"25081850"  
message
"#25081850 BarChart::RendererManager Error >> There was an error rendering the chart. Enable FusionCharts JS debugMode for more information."  
nature
"RuntimeException"  
source
"FusionCharts::RendererManager"

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please provide the scaled down sample code to test and replicate the issue from our end?

 

Also, please provide the device details, where you are trying to render the flash chart and getting this error.

 

If you are rendering on Desktop, please provide the browser version details and Flash player version details, to better look into the issue.

 

Awaiting your valuable inputs.

Share this post


Link to post
Share on other sites

Hi,

 

After some thorough investigating, I actually found that the problem is the sandbox attribute.  When I have the sandbox attribute set to anything, flash charts fail, but javascript charts work.  Why is this? 

Share this post


Link to post
Share on other sites

Hey,

 

Yes, due to security issues, by default, Flash can not load cross-domain external data unless cross domain xml is defined in the domain containing the swf.

 

If you are getting the data from another domain, this will not work, as Flash charts block cross-domain data transfer due to Flash's sandbox security model, unless otherwise configured.

 

Hope this helps.

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