0

If you generate a login overlay with javascript (via ajax loaded content or with JS templates), browsers usually (firefox, safari) don't use autocomplete in these input fields. It's really annoying, do you have any ideas how can I fix this?

Do I need to generate a hidden form inside the original HTML and move this form into this overlay?

Thanks, Andras

2
  • 1
    <input ... autocomplete=ON />? Commented Jul 9, 2011 at 20:17
  • 1
    Example of code that doesn't do autocomplete? Commented Jul 9, 2011 at 20:54

1 Answer 1

1

I was doing the same, using javascript to produce and get values from input fields. They would not autocomplete any text. I discovered that placing the input field in <form></form> allowed autocomplete to work as it should. I wasn't including the form element at first because I wasn't submitting any form, just making an ajax call. And now that use use <form> you just gotta prevent the default form submit and make the ajax call instead. For example <form onsubmit="return false;">

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.