Invoking an Application Using an IFrame

Started by thiruvasagamani, Jan 26, 2009, 03:04 PM

Previous topic - Next topic

thiruvasagamani

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:
Copy Code

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:
Copy Code

<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.
Thiruvasakamani Karnan