Forum Moderators: open

Message Too Old, No Replies

autocompletion does not work in browsers

autocompletion

         

jasperdejong

5:17 pm on Nov 16, 2008 (gmt 0)

10+ Year Member



I've created a login submit form in HTML but for some reason autocompletion does not work.

This is what happens in Firefox:
- I give username and password and click on the login button
- Firefox prompts me if I would like to remember the password. I press 'remember' and login works.
- I log out and return to the login page and insert my username. I am presented with a pulldown after having typed the first character (which means autocompletion works). But somehow the password field is never autocompleted.

Here's the code for this page:


<form name="login_form" id="login_form" autocomplete="ON" onsubmit="javascript:xajax_action_login(document.getElementById('user_name').value, document.getElementById('pass').value); return false;">
<div class="login_line">
<div class="login_line_left">name</div>
<div id="user_name_id" class="login_line_right"><input size="16" maxlength="16" name="user_name" id="user_name" type="text"></div>
</div> <!-- login_line -->
<div class="login_line">
<div class="login_line_left">password</div>
<div id="password_id" class="login_line_right"><input size="16" maxlength="16" name="pass" id="pass" type="password"></div>
</div> <!-- login_line -->
<div class="login_line">
<div class="login_line_left">&nbsp;</div>
<div class="login_line_right"><input class="button" value="login" type="submit"></div>
</div> <!-- login_line -->
</form> <!-- login_form -->

What is wrong with my code? How can I get autocompletion to work?

Thanks,
Jasper

tonynoriega

4:13 pm on Nov 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i dont think that is your code. i think that is a FF browser issue.

check this: [support.mozilla.com...]

jasperdejong

8:53 pm on Nov 17, 2008 (gmt 0)

10+ Year Member



Your link directs to a firefox issue concerning cookies. I'm not using cookies at all.

But your suggestion that this is a FF issue is correct because I just tested this in IE and it worked.

I still have no clue why this doesn't work in FF.