Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You could create a simple html file next to the .xap that contains the silverlight object and access this from an iframe. This is how <a href="http://silverlight.live.com/" rel="nofollow noreferrer">http://silverlight.live.com/</a> fixed this issue for example.</p> <p>On you main page on subA.domain.com add an iframe that show a html page on the other domain:</p> <pre><code>&lt;iframe src="http://subB.domain.com/SilverlightApp.html" scrolling="no" frameborder="0" style="width:800px;height:600px"&gt; &lt;/iframe&gt; </code></pre> <p>and SilverlightApp.html on subBdomain.com could look something like:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id="silverlightControlHost"&gt; &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="800px" height="600px"&gt; &lt;param name="source" value="http://subB.domain.com/SilverlightApp.xap" /&gt; &lt;param name="onerror" value="onSilverlightError" /&gt; &lt;param name="background" value="white" /&gt; &lt;param name="minRuntimeVersion" value="2.0.31005.0" /&gt; &lt;param name="autoUpgrade" value="true" /&gt; &lt;param name="enableHtmlAccess" value="true" /&gt; &lt;a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"&gt; &lt;img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /&gt; &lt;/a&gt; &lt;/object&gt; &lt;iframe style='visibility: hidden; height: 0; width: 0; border: 0px'&gt; &lt;/iframe&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload