Pallav

Flash Player Detection

Recommended Posts

I can't seem to locate if there is any sort of flash player detection built into the FusionCharts package. Right now, in Internet Explorer, if I don't have flash player installed, I just get boxes with little red "X"s in them. Is there a way to enable a more user-friendly message that you need Flash Player installed? Thanks!

Share this post


Link to post
Share on other sites

SWFObject, the library that FusionCharts.js is built from, has version detection built into it.

 

 

 

I took some time today and hacked version detection from the newest version of SWFObject into FusionCharts.js and attached the result to this post.

 

 

 

I set the version requirement to at least 8.0.0 ... I have no idea if that is the minimum version or not :(

 

 

 

It seems to work for me, but it would be much better if the FusionCharts team would integrate the lastest SWFObject into FusionCharts.js completely.

FusionCharts_Detection.zip

Share this post


Link to post
Share on other sites

thanks for the helpful files, but could you please explain a little bit more?

 

 

 

with swfobject i can specify a div-container with an id name, where i can put the content to be shown, if there is not the needed flashplayer installed. how can i specify the div-container here? what id name does it need.

 

 

 

thanks for your help.

 

 

 

EDIT: ok, i found it in the fusionchart.php. thanks!

Edited by Guest

Share this post


Link to post
Share on other sites

Here, in the DIV that you embed the chart, you can write your message that user will see when he doesn't have the required version of Flash Player.

Also, this JS file alerts the user that since he doesn't have the required version of Flash Player, he cannot see the charts.

Share this post


Link to post
Share on other sites

When you say "Here, in the DIV", what do you mean?  Do you have a brief example

Here's what I thought you meant and tried in .Net but it doesn't work right.

 
<td>
	 <div id="divGetProductsOnHandChartHtml">
	  <%=GetProductsOnHandChartHtml()%>
			   Flash Player Not Installed
	 </div>
</td>

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