Hosting and Streaminghttp://forums.silverlight.net//15.aspx/1?Hosting+and+StreamingDiscussions about hosting and streaming Silverlight applications Mon, 01 Jan 0001 00:00:00 -050015123666http://forums.silverlight.net//p/45811/123666.aspx/1?Hosting+Silverlight+xap+on+a+blogHosting Silverlight xap on a blog <p>In the early stages of SL beta 2 (and sometime after RTW's release, to my knowledge), it was possible to embed remotely hosted .xap's using the &lt;object&gt; tag, by specifying an appropriate URI in the &quot;source&quot; parameter, for example you could put the following into a blog post on blogspot.com:</p> <p>&nbsp;&lt;<span class="tag">object</span> &gt; .... &lt;<span class="tag">param</span><span class="attr"> name =</span><span class="attrv">&quot;source&quot;</span><span class="attr"> value =</span><span class="attrv">&quot;http://someremotelocation.com/SilverlightApp.xap&quot;</span>&gt; &lt;/<span class="tag">object</span>&gt;</p> <p>&nbsp;</p> <p>However, you can no longer do this as of some time last week, and you can only specify relative URI's or URI's on the same domain of origin, rather than absolute remote URI's. According to the MSDN description of the &quot;source&quot; value in the Silverlight tag, &quot;For security reasons, you cannot set the<span><span class="input"> Source</span></span> property to a URI that is not from the site of origin of the HTML page that hosts the Silverlight plug-in instance. Therefore, you should you should use only relative references to specify a <span><span class="input">Source</span></span> URI.&quot; </p> <p>&nbsp;</p> <p>Is there any way to re-enable this functionality or somehow get around it?&nbsp; I am trying to make a compact and portable Silverlight app that can be easily deployed and / or embedded in a blog pointing to it remotely, and losing this functionality is a real downer. <br> </p> <p>&nbsp;</p> 2008-11-03T17:13:39-05:00123672http://forums.silverlight.net//p/45811/123672.aspx/1?Re+Hosting+Silverlight+xap+on+a+blogRe: Hosting Silverlight xap on a blog <p>Perhaps an IFrame with a page as the source that contains the object tag and relative reference in?&nbsp; This is what they do on silverlight.live.com (which might also be an option for you)</p> <p>Example from Silverlight Streaming:</p> <p>&lt;iframe src=&quot;<a href="http://silverlight.services.live.com/invoke/173/Silvelright%20Image%20resize/iframe.html">http://silverlight.services.live.com/invoke/173/Silvelright%20Image%20resize/iframe.html</a>&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;width:500px; height:400px&quot;&gt;&lt;/iframe&gt;</p> 2008-11-03T17:30:33-05:00123715http://forums.silverlight.net//p/45811/123715.aspx/1?Re+Re+Hosting+Silverlight+xap+on+a+blogRe: Re: Hosting Silverlight xap on a blog <p>&nbsp;Thanks for the reply, this indeed works.&nbsp; I was hoping not to have to resort to iframes (since the set of blogs that support &lt;object&gt; tags is, to my knowledge, bigger than those that support &lt;iframe&gt; tags), but this should be sufficient for now.&nbsp; I still hope the source tag loses this restriction eventually though.<br> </p> 2008-11-03T17:50:02-05:00127683http://forums.silverlight.net//p/45811/127683.aspx/1?Re+Hosting+Silverlight+xap+on+a+blogRe: Hosting Silverlight xap on a blog <p>When you host the xap file on silverlight.live.com, you get many option on how to host the file on any aspx page or html. One of the generated code is iframe.&nbsp;Any one of the generated code by silverlight should work. </p> <p>If this post was helpful then please 'Mark as Answer'</p> <p>Sharker Khaleed Mahmud<br> Sr. Software Developer<br> (MCP,MCTS,MCPD[web])</p> <p>This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.</p> <p><br> &nbsp;</p> <p>&nbsp;</p> 2008-11-10T02:15:40-05:00