# Save to local storage, canvas and image should always remain

**URL:** <https://discourse.processing.org/t/save-to-local-storage-canvas-and-image-should-always-remain/42162>\
**Category:** Coding Questions\
**Created:** [June 7, 2023, 4:48pm UTC](https://discourse.processing.org/t/save-to-local-storage-canvas-and-image-should-always-remain/42162 "2023-06-07T16:48:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 7, 2023, 5:14pm UTC](https://discourse.processing.org/t/save-to-local-storage-canvas-and-image-should-always-remain/42162/3 "2023-06-07T17:14:37Z")

</div>

[**storeItem()**](https://p5js.org/reference/#/p5/storeItem)

> [@Creating and Populating a Table From Scratch](https://discourse.processing.org/t/creating-and-populating-a-table-from-scratch/12658/3):
>
> I’ve made a sketch that stores and reads an array of CSV row strings from the browser’s local storage using storeItem() & getItem() respectively; then converts that array to p5.TableRow objects; and finally use p5.Table::addRow() to populate a p5.Table container: card_index_dividers[http://p5js.org/reference/#/p5/getItem](http://p5js.org/reference/#/p5/getItem)[http://p5js.org/reference/#/p5.Table/addRow](http://p5js.org/reference/#/p5.Table/addRow) Each mouse click adds a new p5.TableRow to the p5.Table container, updating the browser’s local storage as well. …

> [@How to extract value from an array of multiple JSON urls?](https://discourse.processing.org/t/how-to-extract-value-from-an-array-of-multiple-json-urls/41398/15):
>
> This is my [attempt](https://OpenProcessing.org/sketch/1875469) for your sketch: Basically I’ve declared a global variable loads, which keeps the current number of active loadJSON(). When loads is decreased back to 0, via callback decreaseCounter(), function generateOutput() is called back.

---

_[View the full topic](https://discourse.processing.org/t/save-to-local-storage-canvas-and-image-should-always-remain/42162)._
