Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / February 2006



Tip: Looking for answers? Try searching our database.

Call python script by javascript in html

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sibou51 - 28 Feb 2006 18:42 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.