I can send a POST request and render the response as a full page via submitting a form. How can I do that via a ajax request? That is:
$.ajax('test.com', {
'method': 'POST',
'success': function(res) {
// open a new page, render res as a full page
// I can't simply do window.location = "foobar" as it's a POST
}
});
Or, if this is strange, what is the conventional way of doing it?