AJAX => APAX? Or: is there support for python in browsers?

Tim Roberts timr at probo.com
Wed Nov 16 03:21:04 EST 2005


"Roger Erens" <r.erens at eurosys.nl> wrote:
>
>I remember that the first time I read about Python as a programming
>language was when reading the W3C's HTML 4.01 specification a few years
>ago. In the section on objects, images and applets
>(http://www.w3.org/TR/html401/struct/objects.html) an example was given
>like
>
><P><OBJECT classid="http://www.miamachina.it/analogclock.py">
><PARAM name="height" value="40" valuetype="data">
><PARAM name="width" value="40" valuetype="data">
>This user agent cannot render Python applications.
></OBJECT>
>
>It's also in the XHTML2.0 specification. Now, is this just a theoretical
>example? Or is there a browser that _does_ support python scripts? Or do
>we have to place our bets on the Mozilla 1.9 milestone with hard work
>being done by Mark Hammond?

Internet Explorer will allow any registered ActiveScript language to be
used in a web page.  Python qualifies.  In the latest Win32 extensions,
there is a script in win32comext/axscript/client/pyscript.py that will
register Python as an ActiveScript language.

The you can say

  <script language="python">
  print "<h1>Hello, there.</h1>"
  </script>
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list