<br><br><div><span class="gmail_quote">On 09/03/2008, <b class="gmail_sendername">Kevin Chu</b> &lt;<a href="mailto:redmoon17@gmail.com">redmoon17@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi</div>
<div>there is my blog about IronPython and Silverlight 2:<a href="http://www.cnblogs.com/redmoon/archive/2008/03/08/1096331.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.cnblogs.com/redmoon/archive/2008/03/08/1096331.html</a></div>

<div>I write it in Chinese, however you can translate it by Google Language Tool.</div>
<div>And this blog contain some useful links.</div></blockquote><div><br><br>As far as I can tell (!) your blog only shows how to create a Dynamic Language Silverlight 2 application using &#39;app.xap&#39; created with Chiron. I want to be able to create an application *without* Chiron which is deployed as text on the server (one of the great advantages of using Dynamic Languages with Silverlight as explained by Jim Hugunin at Mix07...).<br>
<br>This means using a &#39;Silverlight.createObjectEx&#39; call from Javascript in the webpage - where I can pass in the name of the xaml file to load. What I don&#39;t know is how in Silverlight 2 do I specify a Python file - either in the &#39;createObjectEx&#39; call or in the xaml file it loads...<br>
<br>I don&#39;t want to be dependent on Chiron for creating/deploying dynamic language applications, and I certainly don&#39;t want to have to hand roll XML manifest files. Hopefully this isn&#39;t necessary I just can&#39;t quite work it out yet.<br>
<br>Michael<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><span class="e" id="q_1189375a920dbaa5_1">On Sun, Mar 9, 2008 at 7:42 PM, Michael Foord &lt;<a href="mailto:fuzzyman@voidspace.org.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fuzzyman@voidspace.org.uk</a>&gt; wrote:<br>

</span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_1189375a920dbaa5_3">Hello guys,<br><br>I would like to create Silverlight 2 applications *without* using chiron<br>
to create and deploy them. How do I specify the Python application file?<br>
<br>I see that I can still use Silverlight.js and the &#39;createObjectEx&#39;<br>function to initialise the Silverlight control in my html. How do I<br>specify in &#39;app.xaml&#39; the Python file to load?<br><br><br>function createSilverlightEx()<br>

{<br>&nbsp; &nbsp;Silverlight.createObjectEx({<br>&nbsp; &nbsp; &nbsp; &nbsp;source: &#39;app.xaml&#39;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Source property value.<br>&nbsp; &nbsp; &nbsp; &nbsp;parentElement:parentElement, &nbsp; &nbsp;// DOM reference to hosting DIV tag.<br>&nbsp; &nbsp; &nbsp; &nbsp;id:&#39;myPlugin&#39;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Unique plug-in ID value.<br>

&nbsp; &nbsp; &nbsp; &nbsp;properties:{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Plug-in properties.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width:&#39;1024&#39;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Width of rectangular region<br>of plug-in, in pixels.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height:&#39;530&#39;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Height of rectangular region<br>

of plug-in, in pixels.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;inplaceInstallPrompt:false, // Determines whether to display<br>in-place install prompt if invalid version is detected.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;background:&#39;white&#39;, &nbsp; &nbsp; &nbsp; &nbsp; // Background color of plug-in.<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;isWindowless:&#39;false&#39;, &nbsp; &nbsp; &nbsp; // Determines whether to display<br>plug-in in windowless mode.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;framerate:&#39;24&#39;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // MaxFrameRate property value.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;version:&#39;1.0&#39;}, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Silverlight version.<br>

&nbsp; &nbsp; &nbsp; &nbsp;events:{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;onError:null, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // OnError property value --<br>event-handler function name.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;onLoad:null}, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // OnLoad property value --<br>event-handler function name.<br>

&nbsp; &nbsp; &nbsp; &nbsp;initParams:null, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// initParams property value --<br>user-settable string for information passing.<br>&nbsp; &nbsp; &nbsp; &nbsp;context:null}); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Context value -- passed to<br>Silverlight.js onLoad event handlers.<br>

}<br><br>Thanks<br><br>Michael<br><br><br></span></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Once in a Redmoon 
<br>_______________________________________________<br>
Users mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.manning.com/foord">http://www.manning.com/foord</a><br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><a href="http://www.ironpython.info">http://www.ironpython.info</a>