How can I make browser remember form values for autocomplete on ajax submit?

62 views
Skip to first unread message

aadil khan

unread,
Dec 6, 2016, 1:57:44 AM12/6/16
to Chromium HTML5
I have created a form, which on submit does a ajax call for the submission. It is not a standard form submit. How can I make browser remember form data(not just username and password) for autocomplete? 

PhistucK

unread,
Dec 6, 2016, 2:10:45 AM12/6/16
to aadil khan, Chromium HTML5, Roger McFarlane
I think it remembers them as long as the submit event is fired. Are you using the submit event to event.preventDefault() and send your form otherwise?


PhistucK

On Tue, Dec 6, 2016 at 8:57 AM, aadil khan <aadilk...@gmail.com> wrote:
I have created a form, which on submit does a ajax call for the submission. It is not a standard form submit. How can I make browser remember form data(not just username and password) for autocomplete? 

--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe@chromium.org.
To post to this group, send email to chromiu...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

aadil khan

unread,
Dec 6, 2016, 2:14:48 AM12/6/16
to Chromium HTML5, aadilk...@gmail.com, rog...@chromium.org
I am not firing the submit event. I am making ajax call for submission. It is not a standard form submit.


On Tuesday, December 6, 2016 at 12:40:45 PM UTC+5:30, PhistucK wrote:
I think it remembers them as long as the submit event is fired. Are you using the submit event to event.preventDefault() and send your form otherwise?


PhistucK

On Tue, Dec 6, 2016 at 8:57 AM, aadil khan <aadilk...@gmail.com> wrote:
I have created a form, which on submit does a ajax call for the submission. It is not a standard form submit. How can I make browser remember form data(not just username and password) for autocomplete? 

--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.

PhistucK

unread,
Dec 6, 2016, 3:05:03 AM12/6/16
to aadil khan, Chromium HTML5, Roger McFarlane
I understand that, but you can fire the submit event, call event.preventDefault() and submit it using AJAX instead. The form will not be submitted through the standard HTML mechanism this way, but you might get autofill.


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe@chromium.org.

aadil khan

unread,
Dec 6, 2016, 4:02:29 AM12/6/16
to PhistucK, Chromium HTML5, Roger McFarlane
I did tried that also but it is not working.

PhistucK

unread,
Dec 6, 2016, 5:12:26 AM12/6/16
to aadil khan, Chromium HTML5, Roger McFarlane
Anyway, I do not think this is appropriate for chromium-html5. chromium-discuss might be more helpful.


PhistucK
Reply all
Reply to author
Forward
0 new messages