![]() |
Call python script by javascript in html
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 |
Re: Call python script by javascript in html
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 |
Re: Call python script by javascript in html
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?? 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. -- Jonas Raoni Soares Silva http://www.jsfromhell.com |
| All times are GMT. The time now is 07:18 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.