Silverlight.js available on MSDN Code Gallery


Silverlight.js is now available for download on MSDN Code Gallery via http://code.msdn.microsoft.com/silverlightjs. Silverlight 1.0 and Silverlight 2 Web sites can use this updated file to add support for Firefox 3 and to enable new features such as an automatic browser refresh when Silverlight installation is complete.

Since this latest version of Silverlight.js introduced a number of breaking changes, you will want to review the readme for tips and workarounds.

We also released a Sivlerlight.js add-on file for Web sites that want to determine if the user’s browser is supported by Silverlight. This file brings back the Silverlight.supportedUserAgent functionality that was present in the 1.0 version of Silverlight.js. Since user agent identification is very fragile, you should only use this file if you want to verify that a user agent explicitly identifies itself as a supported platform per the Silverlight System Requirements page. This add-on file is called Silverlight.supportedUserAgent.js and can be obtained from http://code.msdn.microsoft.com/SLsupportedUA.


Comments (3)

  1. MSDN Archive says:

    Could you explain the need for web sites to update their Silverlight.js?  I ask because, for instance, Flash sites kept working fine in Firefox 3.  

    Why punish the places that have adopted Silverlight by having them break by default with FF3 (or new Safari, or Opera, or whatever)?  What happens when FF4 comes out and a million sites have adopted Silverlight but then none of them work with the new browser?

    Putting any of the new-browser-support burden on webmasters seems like a bad idea.  If it’s a one-time breaking change early on in Silverlight and future new browser versions won’t have this problem, that’s fine, but it’d certainly be good to have it explained as such if that’s the case.  After all, the whole automatic-update of Silverlight on the client seems like it should be sufficient to have things Just Work when new browsers come out.

  2. MSDN Archive says:

    Nevermind, it soujnds like the object tag is the way I want to go as per your explanation in this post.

    http://blogs.msdn.com/piotrp/archive/2008/06/23/instantiating-silverlight-html-vs-script.aspx#comments

    Thanks, Piotr!