[mod_python] Detecting Back Button Usage

Kenneth Loafman kenneth at loafman.com
Wed Mar 21 06:38:08 EST 2007

Clodoaldo wrote:
> I tried this and it worked in Firefox 1.5:
> <html>
> <body>
> <form method="get" action="">
> <input type="image" name="my_image" src="ado_net_costas.png">
> <input type="hidden" name="x" value="99.9">
> <input type="hidden" name="y" value="33.3">
> </form>
> </body>
> </html>
> When I click the image this URL is sent:
> http://teste.s0/python/imagemap.html?my_image.x=293&my_image.y=222&x=99.9&y=33.3 

This works perfectly for what I need.  The other form using the 
<img...ismap> tag would not allow me to get the args with mod_python's 
req.form.get() function, they had to be parsed internally.  Doing this 
and adding a couple of additional vars will allow the graph to be used 
in a bookmark, or served independently of the application.

Thanks for all the help, and the patience!


More information about the Mod_python mailing list