I load jquery into my greasemonkey script and when the user clicks the start button the script makes a bunch of ajax calls. I then empty body and append data. When i click on something and hit back instead of getting the page post script i lose all the data and need to run the ajax calls again (it can take seconds to run). How do i make it not lose the changes?
+1
A:
Using GM_setValue("valuename",value) to save some data and GM_getValue('valuename') to get that data should achieve what you want.
Erik Vold
2010-03-25 05:13:09