I'm trying to figure out how to enable the back and forward buttons in my AJAX application, which is dynamic and database driven. To capture the state, I am trapping some values for url, type, and data in an associative array.
I am getting the hash string back from the browser during the 'hashchange' event, I just don't know how to turn it back into an associative array from the encoded query string. Can anybody help?
jQuery has a deserialize
plugin that might fit the bill.
Alternatively take a look at this SO answer which writes a jQuery function to do the same.