I am using a dijit.form.TextBox for a login form but cannot make browser-saved passwords appear in it like they would in a standard HTML input field.
Is there any way of doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand the question correctly, the problem you are running into is that the template of
dijit.form.TextBoxhasautocomplete="off"hard-coded into the input field.There seem to be some reasons behind this: http://bugs.dojotoolkit.org/ticket/9562
If you really wanted, you could easily override the template to make this driven by a widget attribute instead, and I’ve done so in the past. However, if I recall correctly, one browser or the other still won’t “just work”, possibly because the field gets inserted into the document dynamically and not as part of the initial page. Bottom line: your mileage may vary.