Answer the question
In order to leave comments, you need to log in
How to return to the previous page while saving the results of the executed query?
There is such a site ecoalition.ru If you click on the map or select a region, the listing of companies is loaded via AJAX. If you enter the card and then click on the "Return to the list of companies" button, the previous page with the listing of companies opens. I hung on the button:
But it does not work in all browsers. I checked in IE, there is support for history, but it flips the page before loading the results of the AJAX request. How can you correctly solve the problem so that when you click a button in all browsers, a list of downloaded companies is displayed?
history.go(-1);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question