我有以下形式放置在页面上通过AJAX(jQuery的AJAX是否有帮助):为什么这个表单不会提示浏览器提供保存密码?
<div id="login">
<iframe src="/api/core/authSystem/authUser.php" id="temp" name="temp" style="display:none"></iframe>
<form id="loginForm" target="temp" onSubmit="App.Auth.login(); return false;">
Email: <input type="text" name="email" id="email" onkeydown='if(event.keyCode == 13){ this.submit; }' /><br />
Password: <input type="password" name="password" id="password" onkeydown='if(event.keyCode == 13){ this.submit; }' /><br />
<div class="errorMsg" id="loginError"></div>
<div class="loginHelp l"><a href="#">Cant access your account?</a></div>
<input class="button rounded r" type="submit" id="loginButton" value="Log In" />
</form>
</div>
继This Question提出的建议,我加了iframe和我指定目标。但是,浏览器仍不会提示用户保存密码。任何想法为什么?
编辑:我刚才注意到,Firefox会询问保存密码,但不会真正把它放入形式,一旦你返回到登录页面。
其实我发现了一些可以帮助你的东西:http://www.howtogeek.com/62980/how-to-force-your-browser-to-remember-passwords/ – ParPar 2012-02-16 07:53:57
似乎提交给iframe不再适用最近的浏览器。我还没找到其他方法。 http://dev.vaadin.com/ticket/8405 – Oliv 2012-05-09 07:30:29
你最终找到解决方案吗? – denislexic 2012-09-15 11:02:01