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: 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: References: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, Jan 22, 2012 at 3:36 PM, Tim Roberts wrote: > It seems what you're after is AJAX. =A0If 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