<br><br><div><span class="gmail_quote">On 09/03/2008, <b class="gmail_sendername">Kevin Chu</b> <<a href="mailto:redmoon17@gmail.com">redmoon17@gmail.com</a>> 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 'app.xap' 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 'Silverlight.createObjectEx' call from Javascript in the webpage - where I can pass in the name of the xaml file to load. What I don't know is how in Silverlight 2 do I specify a Python file - either in the 'createObjectEx' call or in the xaml file it loads...<br>
<br>I don't want to be dependent on Chiron for creating/deploying dynamic language applications, and I certainly don't want to have to hand roll XML manifest files. Hopefully this isn't necessary I just can't quite work it out yet.<br>
<br>Michael<br> </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 <<a href="mailto:fuzzyman@voidspace.org.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fuzzyman@voidspace.org.uk</a>> 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 'createObjectEx'<br>function to initialise the Silverlight control in my html. How do I<br>specify in 'app.xaml' the Python file to load?<br><br><br>function createSilverlightEx()<br>
{<br> Silverlight.createObjectEx({<br> source: 'app.xaml', // Source property value.<br> parentElement:parentElement, // DOM reference to hosting DIV tag.<br> id:'myPlugin', // Unique plug-in ID value.<br>
properties:{ // Plug-in properties.<br> width:'1024', // Width of rectangular region<br>of plug-in, in pixels.<br> height:'530', // Height of rectangular region<br>
of plug-in, in pixels.<br> inplaceInstallPrompt:false, // Determines whether to display<br>in-place install prompt if invalid version is detected.<br> background:'white', // Background color of plug-in.<br>
isWindowless:'false', // Determines whether to display<br>plug-in in windowless mode.<br> framerate:'24', // MaxFrameRate property value.<br> version:'1.0'}, // Silverlight version.<br>
events:{<br> onError:null, // OnError property value --<br>event-handler function name.<br> onLoad:null}, // OnLoad property value --<br>event-handler function name.<br>
initParams:null, // initParams property value --<br>user-settable string for information passing.<br> context:null}); // 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>