[Zope] IE caching form field values

Magnus Heino magnus.heino@pleon.sigma.se
23 Sep 2002 17:40:37 +0200


> <dtml-call "RESPONSE.setHeader('Expires', '-1')">
> <dtml-call "RESPONSE.setHeader('Pragma', 'no-cache')">
> <dtml-call "RESPONSE.setHeader('Cache-Control', 'no-cache')">
> 
> <HTML>
> <HEAD>
> <TITLE></TITLE>
> <META HTTP-EQUIV="Expires" CONTENT="-1">
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
> </HEAD>
> 
> Yet somehow IE remembers these values, and if I begin to enter say "3" IE will remembered the previous entered values 3, 33, 311 etc. and display a nice little IE drop-down-like-box below a standard HTML text input form field with these values.
> 
> Is there any way to disable this?

Look at http://webmail.telia.com

What you do is that you define a onSubmit javascript event for the form.
This event then calls a javascript method, that does the actual submit.
This way, IE doesn't remember what you filled in.

/Magnus