History with data-ajax = false

History with data-ajax = false

I am using JQM 1.2.0 and JQ 1.8.2.

I have a page with a form that must use data-ajax =false on submit otherwise the page will not load.  After the user submits the form, I would like the user to be able to press the back button and return to the form with the form still filled out as it was before the submit button was pressed.  What would be the best way to do this?

I was thinking about storing the form information in a cookie before submitting to the page that uses data-ajax=false, and then reloading that information on the 'pagebeforeshow' event.  Would this be the best way to do this, or is there some sort of jquery functionality I can use to do this automatically, or just a better way of doing this in general?

Thanks in advance for the help!