CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   DOM and JSON scripting (http://www.codingforums.com/forumdisplay.php?f=15)
-   -   Can someone connect the dots for me? Javascript to Python via JSON (http://www.codingforums.com/showthread.php?t=280896)

NorbNYC 11-05-2012 03:31 AM

Can someone connect the dots for me? Javascript to Python via JSON
 
Hi all,

I'm looking for a way for javascript to interact with python (which runs a server side process). Essentially I want to send a command with a the web, and have python execute certain code. but I'm lost as how I should get python to view/process and send back commands.

I have an apache server up and python 2.7.

Thanks in advance!:)

rnd me 11-05-2012 06:05 AM

you have to setup a cgi with python. im sure there are tons of example online.

you can then use forms or ajax to interact with the cgi's url.


All times are GMT +1. The time now is 02:08 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.