Welcome Developers!

in

Welcome!

in

embedding silverlight object in JavaScript/HTML - Container application

Last post 08-09-2009 3:11 PM by my␣ CodeStorm. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-07-2009 11:35 PM

    • Kunal
    • Not Ranked
    • Joined on 02-06-2008
    • Posts 6

    embedding silverlight object in JavaScript/HTML - Container application

     I am trying to embed a silverlight object in my JavaScript/HTML based container application, but looks like myspace is not rendeing it. The XAP file is on my sever and I used absolute path to XAP in the source attribute. Here is what the code looks like in html:

        <div id="game" >
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="700px" height="600px" >
              <param name="source" value="[http://mydomain.com]/.xap"/>
              <param name="onError" value="onSilverlightError" />
              <param name="background" value="white" />
              <param name="minRuntimeVersion" value="3.0.40624.0" />
              <param name="autoUpgrade" value="true" />
              <param value="true" name="windowless"/>
                 
              <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
                   <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
              </a>
            </object>
            <iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
        </div>

     

    I do see the silverlight object in the broswer however looks like my .XAP file is not getting loaded.

    Any help would be hightly appreciated!

    Filed under:
  • 08-08-2009 1:44 AM In reply to

    Re: embedding silverlight object in JavaScript/HTML - Container application

     

  • 08-09-2009 3:11 PM In reply to

    Re: embedding silverlight object in JavaScript/HTML - Container application

     Hi,

     

    It is possible to load your XAP from your own domain as you described.    Can you see if it's loading the XAP using firebug?  Are the mime types set up on your server?  If you send me the app id, I can look into it.

Page 1 of 1 (3 items)