Click to Rate and Give Feedback
MSDN
MSDN Library
Live Services SDK
 Invoking an Application Using an IF...

  Switch on low bandwidth view
Windows Live
Invoking an Application Using an IFrame

You can invoke an application hosted on Silverlight Streaming from an IFrame embedded in a web page. Silverlight Streaming supports a special URL syntax for the source attribute of the <iframe> tag.

To embed a Silverlight application using an IFrame, set the IFrame's source attribute to a URL like the following example:

http://silverlight.services.live.com/invoke/acctID/appName/iframe.html

In this example, replace acctID with your Silverlight Streaming numeric account identifier, and appName with the name you gave your application when you uploaded it to the Silverlight Streaming administration server.

If you don't have a web server on which to test this IFrame invocation syntax, you can do so on your Windows Live Spaces site by using the HTML Sandbox module from gallery.live.com.

The following example displays the animated Silverlight logo, uploaded to Silverlight Streaming by a user with an account ID of 32:

<iframe src="http://silverlight.services.live.com/invoke/32/SlLogo/iframe.html" frameborder="0" width="258" height="100" scrolling="no"></iframe>

If you are modifying a Silverlight application to be hosted on Silverlight Streaming, make sure that you also remove any calls to Silverlight.createObject() that are no longer being used.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker