Basically i am following this tutorial: http://blog.jimmy.schementi.com/2010/03/pycon-2010-python-in-browser.html According to it, this code should run fine:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <script type="text/javascript" src="http://gestalt.ironpython.net/dlr-20100305.js"></ script> <script type="text/python" src="http://github.com/jschementi/ pycon2010/raw/master/repl.py"></script> </head> <body> <script type="text/python"> window.Alert("Hello from Python!") </script> </body> </html> And in fact, it does, for example here: http://ironpython.net/browser/examples/pycon2010/start.html You will see it if you have silverlight installed. But the problem is that when I try to make the same code run on my PC, I can't do it. I create a text file, copy this code there, save it as test.html, and run with firefox, but nothing happens. Code does not execute, i just get a blank page. I can't understand the reason why the same code runs here: http://ironpython.net/browser/examples/pycon2010/start.html, but not on my PC, given that it is a client side code, and not the server side. And there is nothing written in firefox error console, when I run it locally. But if I host it on my webhosting account, then I get this error: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http:// sitename .com/silverlighttest.html :: DLR_DownloadResource :: line 15" data: no] I uploaded the html file I am using here: http://www.filedropper.com/silverlighttest But it just a text file with that code with extension changed to .html. What can I do? -- http://mail.python.org/mailman/listinfo/python-list