I want to do the same thing as
<script language="javascript" src="xxx.js"></script>

but with a python script  :
<script language="Python" src="xxx.py"></script>

==================================
if xxx.py :
def mytest():
        alert("test")
        window.document.write('test')
==================================
and test.html :
<HTML>
<SCRIPT Language="Python" src="xxx.py"></SCRIPT>

<SCRIPT Language="Python">
mytest()
</SCRIPT>
</HTML>
==================================

I always got this error :
NameError : name 'mytest' is not defined

Thx ... 
Patrick Poulin

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to