Hello everybody,
do you know if it's possible to call a python script in html page??
I want call my script pyhton and I have a html with javascript but I
don't know how, do you have an example??
thanks
David Dorward - 28 Feb 2006 18:50 GMT
> do you know if it's possible to call a python script in html page??
>
> I want call my script pyhton and I have a html with javascript but I
> don't know how, do you have an example??
Client side python? First you'd need to install an extension that adds
support for PythonScript to the browser. I believe ActiveState produce one
for IE.
Server side? You'd have to issue a new HTTP request. This is usually done by
changing the document.location of either the main document or a (shudder)
iframe or frame. The XMLHttpRequest object is a much hyped alternative.

Signature
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jonas Raoni - 28 Feb 2006 19:03 GMT
> do you know if it's possible to call a python script in html page??
>
> I want call my script pyhton and I have a html with javascript but I
> don't know how, do you have an example??
You can't, you can only make requests for pages and there you can make
what you need =b
- (new Image).src = "url";
- The XMLHttpRequest object
- iframe/frames
- etc.

Signature
Jonas Raoni Soares Silva
http://www.jsfromhell.com