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?

References <vd0ru8-mip.ln1@chris.zbmc.eu> <q84nh7hoa3lolbcc2fnqu47jh69bng0els@4ax.com>
Date 2012-01-22 15:52 +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>
Newsgroups comp.lang.python
Message-ID <mailman.4918.1327207947.27778.python-list@python.org> (permalink)

Show all headers | 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