LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2007, 10:04 AM   #1
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
html suppress input field history


Dear All,

You are almost certainly familiar with the way many browers remember what's been typed in a text box and if you start filling in a text field a box will drop down suggesting various completions? Well, is there any way of putting a hint in the HTML asking the browser not to do this? It's a bit of a giveaway when the box is the answer field in a quiz!

Using a random "name" does the trick, as does name=email2 ... browsers have presumably been told that email2 is not a sensible field to autofill. But neither of those is satisfactory. Random values will recur, not to mention their being a pain to program, and using name=email2 limits me to one text field per page. Is there not a straghtforward rule to suppress the history? Preferably one conciously adhered to by all browsers, hence a W3C standard?

Regards, Schenkel
 
Old 10-08-2007, 06:54 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Here's a couple of options, not sure if any are really "standardized":
http://chrisholland.blogspot.com/200...y-disable.html
http://wiki.mozilla.org/The_autocomp...ts_using_XHTML
http://msdn2.microsoft.com/en-us/library/ms533032.aspx

Edit: looks like the typical autocomplete="off" is currently in the W3C draft for web forms 2.0.

Last edited by pljvaldez; 10-08-2007 at 07:00 PM.
 
Old 10-10-2007, 03:35 AM   #3
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks pljvaldez, much appreciated!

Regards, Schenkel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
one charater is missed from html form field value simon_qwl Programming 2 04-24-2007 08:19 AM
XHTML Strict and input field focus johngreenwood Programming 2 04-08-2007 06:53 PM
Editing Firefox form field history? ylikone Linux - Software 3 03-01-2007 04:47 PM
perl input field separator Tinkster Programming 5 10-18-2004 04:08 PM
form field in html to have permanent value meluser Programming 3 04-19-2003 02:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration