Answer the question
In order to leave comments, you need to log in
How to make a POST request with a transition to the desired view?
There is one view, on it is a button on click on which I have to switch from to another view. Everything seems to be simple, but there (in the second view) you need to transfer data (without forms) and there is quite a lot of data to send them with a GET request, so I'm trying to send a POST request. But the POST request that I make with ajax through jquery only returns the generated page, and I need to redirect to this page ... I just don’t understand how to do this.
Answer the question
In order to leave comments, you need to log in
Don't do it via AJAX.
NOT?
If you really need it, create a temporary form from internal data and submit it with JS.
If it's a cart. In no case can you do it without a form. Then the SEO-shnik will not be able to screen the Goals in the AJAX form.
perversion, some, but
success: function (data) {
window.location.href = "http://stackoverflow.com";
}
Well, as an experiment, you can do AJAX with the necessary data to a third-party page, and after the response, completely dynamically redraw the DOM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question