Skip to the posts
Buffalo's neighborhood journals since 2003 🌱 Plant🌶️ Spice

news’s journal

Updated autosave code / comments update

· · 🌡️ 47°F

I totally rewrote the autosave system. It is used to save your journal to your local system. Autosave is on by default. To turn it off uncheck the autosave box above your jorunal entry box.

SAVE
1. With autsave on, it saves you journal entry into a cookie, every 3 seconds.

2. It also autosaves when you leave the page no more warning, it just saves to be safe.

3. You can also hit the create savepoint button at any point to save to a cookie.

image

RESTORE SAVE
When there is a saved restore point, the restore savepoint button will get a red border. If you hit it, the old text is restored into your box over whatever is in there.

CLEAR SAVE
To remove a savepoint, click the clear savepoint button.

This should stop people from losing entries when they "accidentally" switch pages during writing or their browser quits.

Comments
I also updated the comments to show the 50 latest comments in the (more) link on the front page. When you click on the links on the (more) page they auto load the journals in the main window.

186 words

💬 1 comment

  1. uncutsaniflush ·

    the autosave is real cool, @paul.

    But I really love being able to see so many comments so easily. Its better than rss.

💬 Write a comment