Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7777

Re: Run Python script from JS

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'though.': 0.07; 'received:209.85.160.174': 0.09; 'received:mail- gy0-f174.google.com': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'messy': 0.16; '16,': 0.16; 'cc:addr:python-list': 0.17; 'cheers,': 0.19; 'header:In-Reply-To:1': 0.21; 'thu,': 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'script': 0.27; 'message- id:@mail.gmail.com': 0.28; 'server': 0.29; 'received:209.85.160': 0.29; 'cc:addr:python.org': 0.30; 'indeed.': 0.30; 'jquery': 0.30; 'chris': 0.34; 'there': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'subject:from': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'client?': 0.84; 'run?': 0.84; 'sender:addr:chris': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=oq1syPU+wLuVXuGMkPQaOq0cwrOOpUdxzb4ogUUyNJQ=; b=a/2/Toc/gqNpu5M2z5gUGLqoUza4WqzASTXSyvBWahPLtL8AQ2kPdbmpQLm4u5f5XL o/6LFyL0w+M7C1/7pFTpQRTyINYedi+6gcRGDgWWqnygjfp8In+roe2w7k4+Kou9dSaV ssz1FZaxjDUdqorkVu4Jo/miXR7ngjdDY9PrM=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PPhVc0gWZgwaVBtITxykkwrd6gF18tz0FF2PNyGUxDlueDZqKVX/fgM2uawiVOzBSt aKcLA9mng7E+nCAxzJFYXBNWRZCH2HgZ2bqbhCYRXZlA3hjtTGK3aQSxnoAUet5I0Xmr T2F2p1B3sA2LMMyG1yzdaF+MSyIG5al9zW0xw=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <5346fc8e-9807-4752-bd3f-d4278e008379@y2g2000yqk.googlegroups.com>
References <5346fc8e-9807-4752-bd3f-d4278e008379@y2g2000yqk.googlegroups.com>
Date Thu, 16 Jun 2011 16:55:47 -0700
X-Google-Sender-Auth j_JHIw1AXLJz6zp20Nk80bcu6MI
Subject Re: Run Python script from JS
From Chris Rebert <clp2@rebertia.com>
To Gnarlodious <gnarlodious@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.46.1308268557.1164.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 82.94.164.166
X-Trace 1308268557 news.xs4all.nl 49176 [::ffff:82.94.164.166]:47925
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7777

Show key headers only | View raw


On Thu, Jun 16, 2011 at 3:11 PM, Gnarlodious <gnarlodious@gmail.com> wrote:
> Is there any way to call a Py script from Javascript in a webpage?

Where is the script located, and where do you want it to run? Server or client?

> I don't have to tell you how messy JS is…

Indeed. jQuery dulls the pain though.

Cheers,
Chris
--
http://rebertia.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Run Python script from JS Gnarlodious <gnarlodious@gmail.com> - 2011-06-16 15:11 -0700
  Re: Run Python script from JS Chris Rebert <clp2@rebertia.com> - 2011-06-16 16:55 -0700
  Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-16 23:53 -0700
    Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-17 10:07 -0700
  Re: Run Python script from JS Daniel Kluev <dan.kluev@gmail.com> - 2011-06-17 18:36 +1100

csiph-web