Click here to get back home

anyway to programatically disable autocomplete for Firefox and IE for specific form fields?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
anyway to programatically disable autocomplete for Firefox and IE for specific form fields? ojasrege 07-25-2007
Posted by ojasrege on July 25, 2007, 8:08 pm
Please log in for more thread options


If I have a web form where a user enters sensitive information, such
as a SS#, is there any way for a web site to prohibit any browser from
remembering data for specific fields (IE's autocomplete)?

Any tricks?


Posted by Bergamot on July 25, 2007, 9:38 pm
Please log in for more thread options


ojasrege@yahoo.com wrote:
>
> is there any way for a web site to prohibit any browser from
> remembering data for specific fields (IE's autocomplete)?

Even though the autocomplete attribute is non-standard, browsers other
than IE support it. gecko-based browsers have for a long time, but I
can't say about KHTML browsers, or Opera.

--
Berg

Posted by Brendan Gillatt on July 26, 2007, 6:49 am
Please log in for more thread options


On Wed, 25 Jul 2007 17:08:32 -0700, ojasrege@yahoo.com wrote:

>If I have a web form where a user enters sensitive information, such
>as a SS#, is there any way for a web site to prohibit any browser from
>remembering data for specific fields (IE's autocomplete)?
>
>Any tricks?

You could add a random number to the end of the field's name
attribute. E.G. <input type="textbox" name="ssecuritynumber284625" />

Depending on the sort of CGI you use, you can strip the numbers out
and retrieve the original form name.

The browser would still remember it but it there would be a very slim
chance of ever popping up again.
--
Brendan Gillatt
www.brendangillatt.co.uk
GPG: 0xBACD7433

Posted by Ben Bacarisse on July 26, 2007, 12:11 pm
Please log in for more thread options



> On Wed, 25 Jul 2007 17:08:32 -0700, ojasrege@yahoo.com wrote:
>
>>If I have a web form where a user enters sensitive information, such
>>as a SS#, is there any way for a web site to prohibit any browser from
>>remembering data for specific fields (IE's autocomplete)?
>>
>>Any tricks?
>
> You could add a random number to the end of the field's name
> attribute. E.G. <input type="textbox" name="ssecuritynumber284625" />
>
> Depending on the sort of CGI you use, you can strip the numbers out
> and retrieve the original form name.
>
> The browser would still remember it but it there would be a very slim
> chance of ever popping up again.

True, but one reason to worry about such things is that the
information is stored at all -- for example on a laptop this might be
stolen I don't really want any form data to saved in an accessible
format.

--
Ben.

Posted by Pierre Goiffon on July 27, 2007, 4:23 am
Please log in for more thread options


ojasrege@yahoo.com wrote:
> If I have a web form where a user enters sensitive information, such
> as a SS#, is there any way for a web site to prohibit any browser from
> remembering data for specific fields (IE's autocomplete)?

As always in web developpement, you can't prohibit. But though there is
an html automplete attribute... read :
<http://wiki.mozilla.org/The_autocomplete_attribute_and_web_documents_using_XHTML>

Similar ThreadsPosted
can a textarea on a form be used to cast text to a specific charset like UTF-16? August 11, 2004, 9:38 am
form fields and no-cache July 22, 2004, 11:10 pm
text fields in a form February 11, 2007, 2:33 pm
HTML Form "Lookup" Fields May 8, 2005, 4:23 am
Form problem and Firefox April 6, 2006, 7:54 am
Correct form for file:// URLs (or why don't they work in Firefox?) January 13, 2005, 9:37 pm
User stylesheets for specific sites December 21, 2005, 8:33 am
Links to files in a specific folder July 31, 2006, 12:20 pm
Your thoughts on Context Specific Wikis? September 13, 2006, 8:36 pm
A Browser Specific Problems text does not appear in IE 7 May 31, 2008, 5:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap