2008/05/28 15:41

Programming Silverlight with JavaScript


Adobe Flash가 성공하기 시작한 배경은 Flash에서 웹 페이지와 통신이 가능하던 시기부터 이다.

SilverLight에서도 Flash의 역사와 마찬가지로 Javascript를 통한 통신으로 Rich Web Application으로 자리 매김하기 위한 기반 기술을 제공한다.

현재 회사(가온아이, Kaoni) 내에서도 SilverLight를 이용하여 개발을 시작하고 있고, 현재 본인이 속해있는 팀에서 SilverLight를 이용하는 방법을 활발히 연구중이다.

다음과 같이 아래 링크를 통해 SilverLight와 JavaScript와의 연동을 처리하는 예제를 한번 보도록 하자.

http://msdn.microsoft.com/en-us/library/cc500344.aspx


원문 내용

In this chapter, we’ll take an in-depth look at programming the Silverlight object and the XAML it contains using JavaScript within the browser. We’ll investigate how to host the Silver-light object in the browser, as well as the full property, method, and event model that the control supports. We’ll also look at how to support loading and error events on the control, as well as how to handle parameterization and context for the control. You’ll see how Silverlight provides a default error handler and how you can override this with your own error handlers. You’ll delve into the Downloader object that is exposed by Silverlight, and how this can be used to dynamically add content to your application. Finally, we’ll explore the programming model for the user interface (UI) elements that make up the XAML control model, and you will learn how you can use the methods and events that they expose from within the Java-Script programming model.



http://msdn.microsoft.com/en-us/library/cc500343.aspx
http://msdn.microsoft.com/en-us/library/cc500345.aspx
http://msdn.microsoft.com/en-us/library/cc500351.aspx
http://msdn.microsoft.com/en-us/library/cc500385.aspx
http://msdn.microsoft.com/en-us/library/cc500386.aspx

크리에이티브 커먼즈 라이선스
Creative Commons License
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/337 관련글 쓰기