O'Reilly logo

Mastering LOB Development for Silverlight 5: A Case Study in Action by Rocío Serrano, Braulio Díez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing Silverlight from JavaScript

Here's where many web developers really feel at home. They love JavaScript! The reader may wonder what JavaScript lovers are doing with Silverlight. There are a few reasons for this. Both JavaScript and Silverlight complement each other. On the other hand, the architecture we can build with JavaScript, even if we are extremely organized, cannot match the tidiness we can achieve with Silverlight.

The access to a Silverlight object from JavaScript code is quite easy. It is only necessary to have the Silverlight object instantiated and specify which methods will be accessed from JavaScript in Silverlight.

To register a Silverlight object, we will use the event onLoad of the element of the type Object, which contains ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required