Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering LOB Development for Silverlight 5: A Case Study in Action

You're reading from   Mastering LOB Development for Silverlight 5: A Case Study in Action Develop a full LOB Silverlight 5 application from scratch with the help of expert advice and an accompanying case study with this book and ebook

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849683548
Length 430 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Mastering LOB Development for Silverlight 5: A Case Study in Action
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Express Introduction to Silverlight 2. Forms and Browsing FREE CHAPTER 3. Data Binding 4. Architecture 5. RIA Services Data Access 6. Out of Browser (OOB) Applications 7. Testing your LOB Application 8. Error Control 9. Integration with other Web Applications 10. Consuming Web Services 11. Security Index

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 the Silverlight application in the HTML page, to obtain an instance of the Silverlight application as soon as it is loaded.

<object data="data:application/x-silverlight-2," 
  type="application/x-silverlight-2" width="100%" 
  height="100%...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon