Re: Call python script by javascript in html
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Call python script by javascript in html

From: David Dorward <dorward@yahoo.com>
Date: Tue Feb 28 2006 - 19:50:19 CET

Sibou51 wrote:

> 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.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Mon May 1 03:41:27 2006