Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

autocomplete=off is not XHTML compliant

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amil Hanish - 04 Sep 2007 00:37 GMT
I have a school test site where students enter answers.  I want to disable
the auto complete feature.  You can do this for IE via autocomplete=off to
the form or input control.  But, this is not XHTML compliant.  Does anyone
know how to disable this in a XHTML compliant manner?

Amil
Jesse Houwing - 04 Sep 2007 00:59 GMT
Hello Amil,

> I have a school test site where students enter answers.  I want to
> disable the auto complete feature.  You can do this for IE via
[quoted text clipped - 3 lines]
>
> Amil

Most of these features can also be controlled by a meta tag or a meta server
header. Not in this case it seems.

Microsoft documents the autocomplete feature here:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/autocom
plete_ovr.asp


If you want to stay xhtml compliant, then a solution using Javascript is
probably the easiest solution. Just set the autocomplete property of the
form or the input to off using script, and your HTML will still validate.
http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html

On the other hand, you could also ignore the warning.

As side note, Firefox does not honour the autocomplete=off tag in all versions.
They do however now recommend to deviate from the xhtml standard and use
the IE tag.
http://developer.mozilla.org/en/docs/How_to_Turn_Off_Form_Autocompletion#Origina
l_Document_Information


--
Jesse Houwing
jesse.houwing at sogeti.nl

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.