[IronPython] Problems with simple silverlight/gestalt example

Tony Meyer tony.meyer at gmail.com
Thu Jul 22 12:03:23 CEST 2010


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