Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript to Silverlight when Silverlight instantiated with object tag
    primarykey
    data
    text
    <p>I've used an object tag to load my Silverlight control because I want to be able to input html into a Sharepoint page using the Rich Text Editor. It looks like this:</p> <pre><code>&lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="SilverlightObject" width="850" height="600"&gt; &lt;param name="source" value="ClientBin/LabsSurvey.xap"/&gt; &lt;param name="onError" value="onSilverlightError" /&gt; &lt;param name="minRuntimeVersion" value="3.0.40624.0" /&gt; &lt;param name="autoUpgrade" value="true" /&gt; &lt;img src="ClientBin/InstallSilverlightLabsBanner.jpg" alt="Please Install Silverlight" /&gt; &lt;br /&gt; &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" 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; </code></pre> <p>I've use the Javascript bridge in other Silverlight apps, and it works great for two-way communication between the web page and the Silverlight control. </p> <p>BUT - it seems that in order for this to work, I have to instanciate my Silverlight control using the .NET Silverlight control. </p> <p>I can not get a javascript call to a method within my Silverlight control to work when I've used the object tag. I set it up exactly the same way as in my other apps where it does work - the only difference is that the control was not embedded the same way in the html.</p> <p>Does anyone have any tips for me?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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