To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-23-2006, 09:58 AM   #1
vaaaska
Construction zone
 
Join Date: Apr 2004
Posts: 1,848
Firefox autoinsert problem

This is really damn annoying...apparently Firefox auto inserts information into forms. So, if you are using a cms and editing a users section it will auto insert previous information into the field - it's easy for users to not notice it (because they completely dont' expect it).

I had a field named 'password' and changed it to 'pasword' as I thought that Firefox was perhaps triggering on any field named password but it seems to be remembering all the fields.

It doesn't make sense to have dynamic field names so Firefox doesn't do this and I shouldn't have to ask people to turn this off just so they can use something.

Anybody ever have to deal with this? I can't find a way around it...
vaaaska is offline   Reply With Quote
Old 03-23-2006, 11:47 AM   #2
madwormer2
Cardboard box 2.4
 
madwormer2's Avatar
 
Join Date: Apr 2005
Location: UK
Posts: 691
I find it's actually a bit of a pain in the butt, especially on an admin screen I have on one of my sites which allows me to edit a users details. Everytime I load the page, it puts in MY details instead.

The only way that I can think of doing it is that what you can do is load the page with data in, and then once it has loaded check to see if the data has already been altered. If it has, just display a warning to the user, telling them about this "feature"

Here's a quick test page (that works, might I add):

Code:
<html>
<head><title>Autofill</title>
<script language="Javascript">
function check(){
  if(document.getElementById('username').value != 'dave'){
   alert('You currently have the autofill feature turned ON. This could alter the way that this application works.\n It would be beneficial to you to turn it off.');
  }
}
</script>
</head>
<body onload="check();">
<form action="#" method="GET">
Password: <input type="password" id="password" name="password" value="oasss"><br>
Username: <input type="text" id="username" name="username" value="dave"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>

Last edited by madwormer2; 03-23-2006 at 11:52 AM.
madwormer2 is offline   Reply With Quote
Old 03-23-2006, 06:34 PM   #3
vaaaska
Construction zone
 
Join Date: Apr 2004
Posts: 1,848
After some research and a total pain in the butt day...we've turned it off. It's interesting because if the user changes the info it WILL save it, but they can't see it. Still, this is not the way it should work - it should ask to save a form before it remembers it. Always...or else it gets turned off.
vaaaska is offline   Reply With Quote
Old 03-24-2006, 01:24 AM   #4
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,127
What's IE's policy about auto-filling forms? (I can't remember what the default in either case is....)
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 03-24-2006, 08:50 AM   #5
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
IE always asks by default
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-24-2006, 11:09 AM   #6
JPnyc
Administrator
 
Join Date: Jan 2005
Posts: 963
IE asks if you want to save the info, and so does FF.
__________________
PHP builder Online Community Manager

JPnyc is offline   Reply With Quote
Old 03-24-2006, 11:33 AM   #7
vaaaska
Construction zone
 
Join Date: Apr 2004
Posts: 1,848
FF does not...all the time...otherwise this problem would not exist. We had cases where they saw their data, changed it, updated it and when the page returned they still saw their data (not the changed data). The table though had the correct (changed) info. FF never asked...

It asks for passwords...but we're talking about other forms here...
vaaaska is offline   Reply With Quote
Old 03-24-2006, 12:03 PM   #8
JPnyc
Administrator
 
Join Date: Jan 2005
Posts: 963
Does every single time i enter info into any kind of textbox. On 2nd thought, I never used it for anything but logging into the forums so I guess I've never used it with any other kind of form.
__________________
PHP builder Online Community Manager

JPnyc is offline   Reply With Quote
Old 03-24-2006, 02:14 PM   #9
MarkR
Senior Member
 
Join Date: Jul 2004
Location: Oxford, England
Posts: 1,983
There is an attribute (not standard) which controls this behaviour in Firefox.

I believe the same attribute works in MSIE too.

A really lousy trick (which works) is to use Javascript to copy the value from the form field into a hidden form upon submit, and clear the original field. This is highly effective, but very nasty because the form then won't work properly if Javascript is disabled. This also works in all browsers (which support Javascript, use DOM0 functions for best compatibility)

Mark
MarkR is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:38 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.