Category: local storage

Quick Tip: Persist Checkbox Checked State after Page Reload

This quick tip describes how to have your browser remember the state of checkboxes once a page has been refreshed or a user navigates away from your site to come back at a later date. [author_more] It might be useful to Persist Checkbox Checked State if, for example, you use checkboxes to allow your users to set site-s...

Synchronizing Offline App Data with PouchDB

Applications which can work online and offline are an advantage to mobile users. For example, someone traveling by air generally has no internet connection. With a well designed app they can still work in offline mode and synchronize the offline data with an application server. How Does This Work? When the application ...

Practical CoffeeScript: Making a Tic-Tac-Toe Game

CoffeeScript is a tiny little language that compiles to JavaScript. There is no interpretation at runtime since you write CoffeeScript, compile it to JavaScript and use the resulting JavaScript files for your app. You can use any JavaScript library (e.g. jQuery) from within CoffeeScript, just by using its features wit...