[Tutor] Python in HTML
Alan G
alan.gauld at freenet.co.uk
Sat May 21 14:09:34 CEST 2005
> it would be a smart idea if I could figure out how to somehow
replace
> the javascript in the html with python. However, everything I've
seen
> online seems to require installing something on the server, which I
The problem lies not on the server but on the client.
JavaScript support is embedded in every popular browser so it just
works, but none of them know about python. Even if they did it would
require the user to have Python installed, which you can't assume.
It is possible to embed python in web pages on Windows and IE, using
ActiveX scripting (Now called WSH) and the winall package includes a
script to activate it. However that will still require the end users
to have Python installed and the WSH feature for Python turned on
- quite unlikely outside a closed user community.
So sadly its back to JavaScript I'm afraid. OTOH I didn't find
JavaScript
to be too terrible, what kind of problems are you having?
PS
I couldn't reply to the original message because it had beebn
digitally signed. Please don't do that when posting to public mailing
lists folks! (Well, not if you want a reply!)
Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list