If you are using Jquery browsers do not want to remember the login/password. Why?

0 like 0 dislike
4 views
On the website in the specific block is loaded form for authorization.
Loading is carried out using the Jquery $("#auth_panel").load('/actions/auth_panel/');
In the form itself uses a standard layout.
When you enter your login and password in her browser prompts you to save the data for this form (only in FF, in IE and Chrome and it never happens), but when reloading the page (e.g. after updates) the fields are not automatically filled in.
What this might be?
by | 4 views

2 Answers

0 like 0 dislike
Apparently with the help of jQuery.
1. onclick="go_auth(); return false;">
Here return false; unnecessary. And go_auth(); too, frankly.
It is better to do:
\r
$('#authform').submit(function(){ $.post("/actions/user/auth/ajax/", {'auth[login]': $("#auth_login").val(), 'auth[password]': $("#auth_password").val()}, function(data) { if(data!='ok') { window.location = "/user/auth/"+data; } $("#auth_panel").load('/actions/auth_panel/'); } ); return false; }); 

and the onclick handler of the input, very clean
by
0 like 0 dislike
Perhaps inputof text is missing the name attribute?
If you send data to ajax via id (which is not very correct), this is possible.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,857 users