Click to See Complete Forum and Search --> : Firefox autoinsert problem
vaaaska
03-23-2006, 09:58 AM
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...
madwormer2
03-23-2006, 11:47 AM
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):
<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>
vaaaska
03-23-2006, 06:34 PM
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.
Weedpacket
03-24-2006, 01:24 AM
What's IE's policy about auto-filling forms? (I can't remember what the default in either case is....)
michaewlewis
03-24-2006, 08:50 AM
IE always asks by default
JPnyc
03-24-2006, 11:09 AM
IE asks if you want to save the info, and so does FF.
vaaaska
03-24-2006, 11:33 AM
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...
JPnyc
03-24-2006, 12:03 PM
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.
MarkR
03-24-2006, 02:14 PM
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
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.