What is the best practice for using backbone.js with localStorage for IE7 and IE6?

I am developing an application with backbone.js, back and socket.io and I am having problems with localStorage on ie7 and ie6.

Have you pursued IE7 / Window Phone compatibility with the base? What was your solution for storing the client model model?

+4
source share
4 answers

Based on the above Bryan Bailliache example, I created a seamless Amplify backend for Backbone.js, you can check https://github.com/dev360/Backbone.amplify . Hope this is helpful.

+5
source

The AmplifyJS project has a storage abstraction that

amplify.store is a shell for various persistent client-side storage systems. amplify.store supports IE 5+, Firefox 2+, Safari 4+, Chrome, Opera 10.5+, iPhone 2+, Android 2+ and provides a compatible API for handling cross-browser storage.

Since it works on IE 5+, this should fix the problems you have.

Unfortunately, I did not run WinPhone compatibility, but I had compatibility with IE 7+ for Windows, and the AmplifyJS project met my requirements.

+4
source

I need the same thing.

Since this question is 1 year old and https://github.com/dev360/Backbone.amplify the latter commit 2 years and is not updated with the current version of Backbone.localStorage

I made a new Backbone.localStorage using Amplify https://github.com/fadomire/Backbone.amplifyLocalStorage

I will try to update it and fix the problems, but not guarantee.

+2
source

The Backbone.js page has a ToDo List demo application with the localStorage adapter that comes with it. I would change this, check for window.localStorage and refuse to use cookies or call ajax for the backend.

0
source

All Articles