Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect via javascript whether Silverlight is installed

Is there a javascript function I can use to detect whether a specific silverlight version is installed in the current browser?

I'm particularly interested in the Silverlight 2 Beta 2 version. I don't want to use the default method of having an image behind the silverlight control which is just shown if the Silverlight plugin doesn't load.

Edit: From link provided in accepted answer:

Include Silverlight.js (from Silverlight SDK)

Silverlight.isInstalled("2.0");
like image 957
Mark Ingram Avatar asked Sep 23 '08 09:09

Mark Ingram


2 Answers

Include Silverlight.js (from Silverlight SDK)

Silverlight.isInstalled("4.0")


Resource:

http://msdn.microsoft.com/en-us/library/cc265155(vs.95).aspx

like image 105
Domenic Avatar answered Nov 14 '22 18:11

Domenic


Please actually use the latest script available at http://code.msdn.microsoft.com/silverlightjs for the latest updates. This has several fixes in it.

like image 27
Tim Heuer Avatar answered Nov 14 '22 17:11

Tim Heuer