I have a form, which I parse and attach it's information to an object called "data" which is passed into the ajax:
$.ajax({
url: url,
data: data,
type: "POST",
inline: true,
success: function (redirect) {
console.log("success");
// go to the redirect page -- ??
}
});
This works successfully, but I would like the page to refresh. Right not, it just returns the html, but does not refresh.
Using the form to submit is not an option, I'd need to create a separate form to submit from, but I do not know how to attach data to this form.
Any help is appreciated.
edit:
I will need to create a separate form as the one I am parsing for data does not always exist. this data then gets put into localstorage and is loaded at a later time. I'd like to be able to use saved data and build a submit form with it