Python in HTAs

Marcel van den Dungen m_vddungen at yahoo.com
Sun Oct 17 17:25:16 EDT 2004


Does anybody know how to use Python as the scripting language for HTML
applications? I tried the following, but I get a script error ('Object
expected') on the body element.

<html>
<head>
<title>Python controlled HTML application</title>
<hta:application id="oApplication">
<script language="python">
def Onload():
    alert('hello from python')
    document.all["idspan"] = 'hello from python'
</script>
</head>
<body onload="Onload();">
<span id="idspan" ></span>
</body>
</html>

Could not find any example on Google either.

TIA,
Marcel



More information about the Python-list mailing list