Just my first toe-dip into figuring out how browser “Local Storage” works.
Not sure I’d trust this for longterm/safe storage of anything, but I am intrigued by the possibilities. TiddlyWiki “proper”.
-
My primary driver is looking for a way to simulate writing to and reading from files in BASIC Anywhere Machine; now I wonder …
-
A way for multiple single-file TiddlyWiki’s to communicate with each other?
- For example:
- my lean “quick-note-taking” TiddlyWiki throws the notes into LocalStorage
- my heavy “labour-intensive-note-making” TiddlyWiki automagically gathers everything from LocalStorage for me when I sit down for the hardwork
- So the items in LocalStorage are my content but also my TODO’s, and I can delete each item in LocalStorage as I process it.
Download the attached and drag into any TiddlyWiki for import. There are two tiddlers:
- For example:
-
LocalStorage HTML
- this is a complete HTML document with all of the necessary javascript embedded
-
LocalStorage iframe
- just an iframe with a srcdoc attribute that gets set to the content of LocalStorage HTML
The first time LocalStorage iframe gets rendered/opened, a popup will ask you for your username. (Put whatever in there.)
- just an iframe with a srcdoc attribute that gets set to the content of LocalStorage HTML
The next time LocalStorage iframe gets rendered/opened, it nabs the username from local storage and shows the value.
My first thought: hmmm, I can drag these two tiddlers into any TiddlyWiki instance out there and see right away if it is using local storage (convenient alternative to digging into browser “developer tools”.
LocalStorageLearning.json (1.24 KB)