Silverlight Streaming: new iframe-based invocation mechanism

With a recent update to the Silverlight Streaming service, it's now even easier to instantiate a hosted app on a web page: all you need is a single iframe element whose source attribute refers to a server-side invocation URL. You can now write something like this:

<html>
<body>
<iframe src=https://silverlight.services.live.com/invoke/AccountID/AppName/iframe.html
     scrolling="no" frameborder="0" width="500" height="400"></iframe>
</body>
</html>

(Note that AccountID and AppName need to be replaced with values specific to the hosted application)

Background

Silverlight Streaming is a new Windows Live Platform offering (currently in alpha) that provides scalability-on-demand for media-rich Silverlight applications. (You can find more information here)

Once you upload a Silverlight application to the Silverlight Streaming service, it's fairly trivial to instantiate the hosted app on a web page. You could previously do it in four easy steps that look something like this: 

<html>
<head>
<!-- (1) add a script reference -->
<script src="https://agappdom.net/g/silverlight.js" type="text/javascript"></script>

<!-- (2) define a Javascript function to create the hosted object; usually in a separate .js file -->
   <script type="text/javascript">
function CreateSilverlight() {
Sys.Silverlight.createHostedObjectEx({ source: "streaming:/AccountID/AppName",
         parentElement: pe});
}
</script>
</head>
<body>
<!-- (3) define a DIV to contain the hosted object -->
<div id="myApp" class="aghost">
<!-- (4) add a script element to call the create function -->
<script type="text/javascript">
         var pe = document.getElementById("myApp");
CreateSilverlight();
</script>   
   </div>
</body>
</html>

[Details on the individual steps can be found here, on the Windows Live Dev site. Note that the URL used in step (1) is for the Silverlight 1.0 Beta. For more information on how to reference Silverlight 1.0 RC, see the July 27th entry on the Silverlight Streaming News page]