How can I load python script into Html ??

2005-12-13 Thread PatPoul
I want to do the same thing as


but with a python script  :


==
if xxx.py :
def mytest():
alert("test")
window.document.write('test')
==
and test.html :




mytest()


==

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

Thx ... 
Patrick Poulin

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


Re: How can I load python script into Html ??

2005-12-14 Thread PatPoul
Sorry I was not clear, my setup is functionnal with Pywin32.
Python 2.4 + pywin32

and actually, I can do this kind of script on client side :



alert('test')



but I want to include external python script with the HTML tag 

Re: How can I load python script into Html ??

2005-12-19 Thread PatPoul
Yes I register Python script.
I see in your exemple that you use file extention pys.
That was why my exemple does'nt work.

Thanks !

Patrick Poulin

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