Call python script by javascript in html

S

Sibou51

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
 
D

David Dorward

Sibou51 said:
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.
 
J

Jonas Raoni

Sibou51 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top