Search Wiki:
Resource Page Description
Silverlight.js is a helper file which enables Web sites to create advanced Silverlight installation and instantiation experiences.

Current Release: 2.0.30523.6

This release is compatible with Silverlight 1.0 and Silverlight 2 Beta 2.

Bug Fixes:

  • Fixed Silverlight.isInstalled to work with Firefox 3


This section lists all functions and properties available through Silverlight.js in this release. All members are children of the Silverlight javascript object and can be accessed by calling Silverlight.memberName.
Core functionality:
  • isInstalled
  • createObject
  • createObjectEx

HTML Generators:
  • buildHTML
  • buildPromptHTML

Installation helpers:
  • getSilverlight
  • WaitForInstallCompletion
  • isBrowserRestartRequired

  • onSilverlightInstalled
  • onGetSilverlight

Error handler:
  • { defaulterrorhandler }

Internal helpers. These members are used by other Silvelright.js functions:
  • followFWLink
  • HtmlAttributeEncode
  • { __cleanup }
  • { __startup }
  • { __getHandlerName }
  • { _silverlightCount }
  • fwlinkRoot


Last edited Jul 2 2008 at 2:23 AM  by PiotrP, version 8
eriksc wrote  Feb 20 2009 at 4:07 PM  
This version of Silverlight.js seems to be outdated, though it's the most recent version available. Silverlight.getSilverlight() calls Silverlight.followFWLink("114576" + verArg); but the LinkID 114576 is outdated, and verArg only contains the first 2 parts of the version passed to the function (2.0 instead of 2.0.31005.0). If you launch the link created ( in Safari on Windows it will say that "The site that you visited was built for an earlier, beta version of Silverlight." Changing the above mentioned line to Silverlight.followFWLink("124807"); fixes the problem. This seems like a major oversight.

drdbkarron wrote  Nov 10 2009 at 10:02 PM  
Is there an xaml or c# method to recover the version of Silverlight running ?
I have complained that my users and civilians are getting a bad impression of Silverlight because it keeps nagging them to install it.

If the problem is in this file, can we patch this somehow ?

HSchoefer wrote  Dec 1 2009 at 11:40 AM  
thanks for the information @eriksc

Page view tracker