Hey, I\'m working on a web app that has a login dialog that works like this:
If you use a type="button" with an onclick handler to login using ajax, then the browser won't offer to save the password.
Since this form does not have a submit button and has no action field, the browser will not offer to save the password.
However, if you change the button to type="submit" and handle the submit, then the browser will offer to save the password.
Using this method, the browser should offer to save the password.
Here's the Javascript used in both methods:
function login(f){
var username = f.username.value;
var password = f.password.value;
/* Make your validation and ajax magic here. */
return false; //or the form will post your data to login.php
}