views:

18

answers:

0

I have an HTML page with a login form and a registration form inside of an overlay. When the user submits either of these forms, an AJAX request is made back to the server.

If the registration or login is successful, then the user is logged in and certain parts of the page are updated. If there is an issue with the login/registration credentials, then the user is asked to correct the error.

How do I get the browser to prompt the user to save or remember the username/password used for this scenario?

I was able to get Firefox to prompt the user and remember the password by following the answer here: http://stackoverflow.com/questions/2382329/how-can-i-get-browser-to-prompt-to-save-password

But this solution did not work in webkit browsers or IE. Also, I tried adding the autocomplete attribute to the forms with value "on", but this also did not solve the problem.

Thanks in advance :)