Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-05-2012, 03:31 AM   PM User | #1
NorbNYC
New to the CF scene

 
Join Date: Aug 2012
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
NorbNYC is an unknown quantity at this point
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!
NorbNYC is offline   Reply With Quote
Old 11-05-2012, 06:05 AM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,549
Thanks: 9
Thanked 479 Times in 462 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
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.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5% IE10:8.5%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:12 AM.


Advertisement
Log in to turn off these ads.