[IronPython] Problems with simple silverlight/gestalt example

Michael Foord fuzzyman at voidspace.org.uk
Tue Jul 27 01:01:18 CEST 2010


On 26/07/2010 23:51, Tony Meyer wrote:
> Hi,
>
> I guess this is more complex than I thought.
>
> Is anyone able to simply confirm that they are able to get a simple
> script like this (using gestalt.ironpython.net) working?  At least if
> I know that it's theoretically possible, I can try and figure out what
> I'm doing wrong.
>    

Are you trying to view the html file direct off the filesystem? You 
still need to serve it for it to work, even if it is only locally. You 
can use chiron to do this. Sorry if this has already been suggested.

All the best,

Michael

> Thanks,
> Tony
>
> On Thu, Jul 22, 2010 at 10:03 PM, Tony Meyer<tony.meyer at gmail.com>  wrote:
>    
>> Hi,
>>
>> I'm trying to get a simple Silverlight example working using the
>> gestalt.ironpython.net method, and I'm having some difficulty -
>> basically nothing happens ("Loading..." shows, of course, but nothing
>> else).  The javascript file does get loaded, and I have let it sit for
>> a long time in case it was just excessively slow.
>>
>> I've tried the HTML below in Safari 5, Firefox 3.5.3, Chrome 5.0 (OS X
>> 10.5), IE 7 (Windows Server 2003) and IE 8 (Windows XP SP2 - yes, yes,
>> I know it should be updated!).  Both have the latest version of
>> Silverlight (as determined by Silverlight itself).
>>
>> Can anyone explain what I'm doing wrong?
>>
>> Thanks,
>> Tony
>>
>> """
>> <html>
>>     <head>
>>         <script type="text/javascript"
>> src="http://gestalt.ironpython.net/dlr-latest.js"></script>
>>     </head>
>>     <body>
>>         <div id="message">Loading...</div>
>>         <script type="text/python">
>>             document.message.innerHTML = "Hello from IronPython!"
>>             def on_click(obj, args):
>>                 obj.innerHTML = "Clicked!"
>>             document.message.events.onclick += onclick
>>         </script>
>>     </body>
>> </html>
>> """
>>
>>      
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>    


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.





More information about the Ironpython-users mailing list