Fusion Charts show no flash player warning message

╄→гoц情女王★ 提交于 2019-12-25 04:55:15

问题


I'm using Fusion Charts 3.2.1. I want to show a warning message when my flash player isn't enabled in browser or installed. How do I do that? Is strange that even on the official site the chart panel is completely blank when flash is disabled.


回答1:


If you are using JavaScript code to render the chart, you can use detectFlashVersion and autoInstallRedirect constructor parameters (set them to 1) to show an alert message and a redirection to flash player download page.

example:

var myChart = new FusionCharts({ swfUrl : "FusionCharts/Column3D.swf", id : "myChartId", renderAt : "chartContainer", dataSource : "Data.xml", "detectFlashVersion": 1, "autoInstallRedirect": 1 });

Check out the last two constructor properties.

or

var myChart = new FusionCharts("FusionCharts/Column3D.swf", "myChartId", "400", "300", 0, 0, "", "noScale", "", 1, 1);

Check out the last two parameters (passed as 1) in the above code



来源:https://stackoverflow.com/questions/9972883/fusion-charts-show-no-flash-player-warning-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!