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


Groups > comp.lang.python > #19201

Re: What's the very simplest way to run some Python from a button on a web page?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'framework,': 0.09; 'jquery,': 0.09; 'says,': 0.09; 'subject:button': 0.09; 'received:209.85.210.174': 0.13; 'received :mail-iy0-f174.google.com': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'seems': 0.19; "aren't": 0.21; 'header:In- Reply-To:1': 0.22; '\xa0if': 0.23; 'pm,': 0.26; 'subject:web': 0.28; 'work.': 0.28; 'message-id:@mail.gmail.com': 0.28; 'subject:page': 0.28; 'server': 0.30; '22,': 0.30; 'asynchronous': 0.30; 'subject:some': 0.30; 'sun,': 0.30; 'subject:?': 0.30; 'framework': 0.30; 'does': 0.32; 'to:addr:python-list': 0.33; 'object': 0.33; 'leaves': 0.34; 'subject:What': 0.34; "there's": 0.37; 'received:google.com': 0.37; 'page': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'subject:from': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'back': 0.62; 'subject.': 0.68; 'roberts': 0.84; 'subject:very': 0.91; 'alone.': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=23mBsJCA5S4DaKt06lmdtkTTQWWYWw0WBEYoepRwPNY=; b=HZ4Q2diKHnimYH+BX5RWJT52jLx8uk5f0iIzZtxF6Z52jAMfr2evRv+2lI39fNri3G 0orPtoBSf8XrQCpGp4lNH3D80jSf1/JUJhMA5Qt11iPXs9B5f7fFFrwAVBmK+cCeRZFU 0yxSGbXPvy9ENcrGwFRTx1Mp7lDguVKGztOrk=
MIME-Version 1.0
In-Reply-To <q84nh7hoa3lolbcc2fnqu47jh69bng0els@4ax.com>
References <vd0ru8-mip.ln1@chris.zbmc.eu> <q84nh7hoa3lolbcc2fnqu47jh69bng0els@4ax.com>
Date Sun, 22 Jan 2012 15:52:24 +1100
Subject Re: What's the very simplest way to run some Python from a button on a web page?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
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.4918.1327207947.27778.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327207947 news.xs4all.nl 6860 [2001:888:2000:d::a6]:37256
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19201

Show key headers only | View raw


On Sun, Jan 22, 2012 at 3:36 PM, Tim Roberts <timr@probo.com> wrote:
> It seems what you're after is AJAX.  If you are using a Javascript
> framework like jQuery, it's easy to fire off an asynchronous request back
> to your server that leaves the existing page alone.

If you aren't using a framework, look up the XMLHttpRequest object -
that's what does the work. As Tim says, there's no lack of good
material on the subject.

ChrisA

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


Thread

What's the very simplest way to run some Python from a button on a web page? tinnews@isbd.co.uk - 2012-01-21 14:58 +0000
  Re: What's the very simplest way to run some Python from a button on a web page? Tim Roberts <timr@probo.com> - 2012-01-21 20:36 -0800
    Re: What's the very simplest way to run some Python from a button on a web page? Chris Angelico <rosuav@gmail.com> - 2012-01-22 15:52 +1100
      Re: What's the very simplest way to run some Python from a button on a web page? tinnews@isbd.co.uk - 2012-01-22 10:05 +0000
    Re: What's the very simplest way to run some Python from a button on a web page? tinnews@isbd.co.uk - 2012-01-22 10:04 +0000

csiph-web