[IronPython] Problems with simple silverlight/gestalt example

Tony Meyer tony.meyer at gmail.com
Tue Jul 27 00:51:03 CEST 2010


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.

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>
> """
>



More information about the Ironpython-users mailing list