PDA

View Full Version : Charts rendered locally - installed flash and no internet connection



ronivcp
9 Sep 2010, 11:50 AM
Rendering an Ext chart requires a live internet connection (I can't run it locally otherwise because I'm not using a web-server) and installed Flash.

In my app, if flash is not installed it shows a grid instead of a chart but, if flash is installed and there is no internet connection, it shows a blank frame.
The thing is: is there any way to know if the chart couldn't access the flash movie in yui.yahooapis.com, so I can put a grid in this case?

Thanks in advanced.

Animal
9 Sep 2010, 12:05 PM
Put http://yui.yahooapis.com/2.8.1/build/charts/assets/charts.swf somewhere on your own server.

Then point http://dev.sencha.com/deploy/dev/docs/?class=Ext.chart.Chart&member=CHART_URL to that,

ronivcp
9 Sep 2010, 12:53 PM
Thanks for the quick response, but my app runs locally, without a server and I can't setup an http server for this.

Condor
10 Sep 2010, 1:15 AM
1. Do what Animal suggested.
2. You need to give Flash permission to load a .swf from your local filesystem (it's somewhere in the Flash options).
3. You also can't do XHR from the local filesystem!