[mod_python] Events

Evert Carton evert_carton at yahoo.co.uk
Fri Apr 16 23:38:56 EST 2004

There is a more or less standard approach to this:

Google for 'XMLHttpRequest'

The XMLHttpRequest-object is a JavaScript object that does allow you to
ask for a server-side action without actually displaying a page.

The way to instantiate it differs between Mozilla/Firefox and IE, the
code below for Mozilla would be more or less:

var xmlhttp = new XMLHttpRequest();

You can check for the status using the properties of the
XMLHttpRequest-object and make javascript alerts ... accordingly. 

Hope this helps ...


On Fri, 2004-04-16 at 22:07, Robert Thomas Davis wrote:
> I am interested in staying away from javascript if possible so I was
> wondering how one would go about calling server side python functions
> from page events...like OnClick.
> Thanks
> ______________________________________________________________________
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list