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

Chris Angelico rosuav at gmail.com
Sat Jan 21 23:52:24 EST 2012

On Sun, Jan 22, 2012 at 3:36 PM, Tim Roberts <timr at 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.


More information about the Python-list mailing list