sailfishos-chum / bugger

Apache License 2.0
0 stars 2 forks source link

Allow saving and loading form contents #14

Closed nephros closed 2 years ago

nephros commented 2 years ago

at least the last unsubmitted one

nephros commented 2 years ago

I wonder if a Page can simply be serialized to JSON, and later PageStack.replace()-ed...

thigg commented 2 years ago

It would be easy to bind everything to a javascript object, serialize that and load it later

nephros commented 2 years ago

Please see branch 'autosave' for a first try.

nephros commented 2 years ago

So that implementation works satisfactorily, modulo some minor issues.

But I just realized that loading and storing using XMLHttpRequests is quite silly (esp. loading). This really must be switched to LocalStorage.

nephros commented 2 years ago

Implemented in 0.9.7 (9f9d45fd2a)