disable autofill in WebControls.TextBox control

G

Guest

I'm retouching our corporate web site that, among other things, allows
customers to log in and pay their invoices online. I noticed that on the
checkout page, the credit card number textbox autofills with past entries for
that textbox. My development workstation has the Google Toolbar installed;
I'm not sure whether the autofill functionality is native to the browser or
coming from the Google Toolbar.

In either case, is there any way of disabling autofill for a particular
textbox regardless of browser or third-party toolbar? If I can't disable
autofill for an individual control, can I disable it for the whole page?

Thanks,

Andre Ranieri
 
S

S. Justin Gengo

Andre,

I believe that the behaviour you describe is due to the google toolbar. I
don't use it's autofill feature and don't experience the behaviour on my
company's sites (or any others). I don't know of any way to disable this
behaviour. It would be up to each individual user.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
M

Mr Newbie

Yes, I think you are correct. The autofill/Complete feature must be under
the control of the user ( or administrator ) as far as I am aware it is not
possible to prevent or enable this using Meta tags for example as this would
constitute a security breach.

I may be wrong, but I doubt it.


Mr N
 
Joined
Oct 14, 2006
Messages
1
Reaction score
0
want to disable the auto complete in your form. SImple

Just add autocomplete=off in form tag.

ie

Code:
<form name="test" autocomplete="off" action="" method=post>
<input type=text name=email>
</form>

Bye Buddy
Albert
 
Joined
Nov 29, 2007
Messages
1
Reaction score
0
This is a little hokey but seems to work in IE

You'll need to either strip out or replace the names I am searching for
depending on what you're doing.

<script type="text/javascript>

restoreStyles();

function restoreStyles(){
inputList = document.getElementsByTagName("INPUT");
for(i=0;i<inputList.length;i++){
inputList.style.backgroundColor = "";
if(inputList.id.indexOf('txtFN')>0 || inputList.id.indexOf('txtLN')>0) {
inputList.readOnly = true;
}
inputList.title = "";
}
selectList = document.getElementsByTagName("SELECT");
for(i=0;i<selectList.length;i++){
selectList.style.backgroundColor = "";
}
window.setTimeout(restoreStyles, 100);
}
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top