0
I have a whole system in ajax, therefore when the user fills a form and persists the information is not saved in the fields, have as I force this behavior in the fields via javascript?
0
I have a whole system in ajax, therefore when the user fills a form and persists the information is not saved in the fields, have as I force this behavior in the fields via javascript?
0
Solved, this solution was located in the post
https://stackoverflow.com/questions/15462991/trigger-autocomplete-without-submitting-a-form
Browser other questions tagged javascript html
You are not signed in. Login or sign up in order to post.
There is the localStorage, but I do not consider it robust or safe. I used the Firebase service a little and may be a better option.
– Heitor Chang
more that way I would have to save all user navigation in a database separately! it would be nice to take advantage of the browser resources for this, but the history only works for href and submits
– Diogo Soares
By submitting the information by ajax, are you giving a Reload on the page? The idea of ajax is not to carry out a load on the page, staying in it and preserving the informed data.
– Matheus
so I don’t re-load..., I’ll try to explain. I have a list in which the user puts the value and search, this query is ajax and the table of results is mounted, but the client wants that when leaving and back he can click and see the latest information that he typed because in the old system he had this functionality but the system was not ajax, so I’m trying a possibility to cache instead of creating an autocomplete by taking from the bank
– Diogo Soares