[Question][try.squeak.org] Is it possible to get/store values in localStorage of the browser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Question][try.squeak.org] Is it possible to get/store values in localStorage of the browser

Hannes Hirzel
Hello Bert

I wonder if and how it is possible to get/store values of the
localStorage of the browser.

Or are there other mechanisms to save state between subsequent calls
to work with a Squeak image file in the browser?

Regards

Hannes

Reply | Threaded
Open this post in threaded view
|

Re: [Question][try.squeak.org] Is it possible to get/store values in localStorage of the browser

Hannes Hirzel
I found the paper which probably has the answer

http://wiki.squeak.org/squeak/5822

On 5/12/18, H. Hirzel <[hidden email]> wrote:

> Hello Bert
>
> I wonder if and how it is possible to get/store values of the
> localStorage of the browser.
>
> Or are there other mechanisms to save state between subsequent calls
> to work with a Squeak image file in the browser?
>
> Regards
>
> Hannes
>

Reply | Threaded
Open this post in threaded view
|

Re: [Question][try.squeak.org] Is it possible to get/store values in localStorage of the browser

Bert Freudenberg
You can save the image, and files are persisted, too. 

This uses IndexedDB for storage behind the scenes. And yes that's described in the paper, but as a user you shouldn't have to worry about the implementation. That's the VM wizards' job ;)

- Bert -

On Sat 12. May 2018 at 06:41, H. Hirzel <[hidden email]> wrote:
I found the paper which probably has the answer

http://wiki.squeak.org/squeak/5822

On 5/12/18, H. Hirzel <[hidden email]> wrote:
> Hello Bert
>
> I wonder if and how it is possible to get/store values of the
> localStorage of the browser.
>
> Or are there other mechanisms to save state between subsequent calls
> to work with a Squeak image file in the browser?
>
> Regards
>
> Hannes
>