Silverlight.js available on MSDN Code Gallery

Silverlight.js is now available for download on MSDN Code Gallery via 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…


What’s new in the Silverlight 2 Beta 2 SDK’s Silverlight.js file?

The Silverlight.js file was updated with several important improvements in the Silverlight 2 Beta 2 SDK. These improvements were focused on two key areas: better experiences out-of-the-box for end users and easier customization of those experiences for developers. To these ends we added functionality that was frequently implemented on Silverlight web sites, we fixed known…


Structure of the Silverlight Object Tag

The Silverlight 2 installation/instantiation model promotes the use of the Silverlight <object> tag template. In my post Instantiating Silverlight: HTML vs. Script I mentioned that this template was designed to meet five criteria: be backwards-compatible with Silverilght 1.0 rely on static HTML only offer the right installer for the right client (Mac vs. Windows vs….


Instantiating Silverlight: HTML vs. Script

Many Silverlight developers have noticed a rather fundamental change between the Silverlight installation/instantiation models in Silverlight 1.0 and Silverlight 2.0. Silverlight 1.0 relied on a javascript helper file, Silverlight.js, to provide the installation experience for the control. Silverlight 2 projects and samples, however, have moved away from the Javascript model and towards a more familiar…


Firefox 3 support added to Silverlight 2 Beta 2 SDK’s Silverlight.js

Lots of folks are starting to notice that changes between Firefox 2 and Firefox 3 are causing failures in the isInstalled function used in older Silverlight.js files. Since the Silverlight.createObject function uses isInstalled, this results in Silverlight content being blocked on Firefox 3. Instead of seeing the content they expect, users are being asked to…


Automatically Start Silverlight on Install – Part 2

Silverlight 2 changes the default instantiation model of the Silverlight control from Silverlight.js to the <object> tag. This change makes it seem that Automatically Starting Silverlight on Install requires rewriting our instantiation code and moving back to the Silverlight.js model. Fortunately, you can get the same auto-restart behavior using the <object> model. My previous post…


Determining if Silverlight is installed using Javascript

In my recent post entitled Automatically Start Silverlight on Install I discussed a method for starting Silverlight once it is installed without any user interaction. The method discussed in that post relied on Silverlight.js, the helper file used for Silverlight 1.0 instantiation. Since Silverlight 2 predominantly uses <object> tags for instantiation, I want to show…


Automatically Start Silverlight on Install – Part 1

The last step of the Silverlight installer is to ask the user to restart or refresh their browser. This approach forces the browser to re-evaluate the page’s Silverlight instantiation logic once the control is installed. In the case of non-IE browsers, the restart also forces the browser to refresh its cache of known controls. While…