You can certainly show a java canvas on a web-page. You create a java
applet with the canvas in it, and use the regular OBJECT or APPLET tags
to create it.

You can do something similar in Python using Jython to compile the
applet from python code into a java .class file.

You can't do it directly in Python, however. There have been attempts
to create a Python plug-in akin to the java applet support. In addition
Grail (the Python implemented browser) supports Python applets.

But OBJECT doesn't have the behaviour of running an arbitrary script on
any browser that cares for security of the user. In particular the W3C
example for HTML OBJECT tag
(http://www.w3.org/TR/html401/struct/objects.html#h-13.3.1) doesn't
work on mainstream browsers. Nor is it ever likely to, since Python
currently has a fundamentally flawed restricted execution model (i.e.
it isn't designed to run code in a sand-box, so isn't secure for
running untrusted code, unlike Java). See this thread on python-dev for
a recent attempt to square the circle:
http://mail.python.org/pipermail/python-dev/2006-July/067240.html

Ian.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to