Jump to content
Reminder, starting today you will no longer be able to login to the forum using your display name, to login you must now use your email address. ×

Another SMALL bug


Recommended Posts

Guest Netduma_Iain

Thanks for letting me know Seb. This is already on the list, we will try save the options per browser. So different people at the home can have different settings. I'm not sure if it will be ready for first patch but will try.

Link to comment
Share on other sites

if you don't support (IE7), then you can use `localStorage`.

 

Otherwise, you have to use cookies.

 

Cookies Legality:

You have to be `Cookie Law` Compliant...however, since the hosting is done technically by the user, they have to be cookie law compliant with themselves...Yup...that's circular logic for you.

Link to comment
Share on other sites

Great' date=' I'll look into localstorage that sounds ideal. I'd rather avoid the cookie thing if I can.

[/quote']

 

WINDOW.LOCALSTORAGE

Instead of the sessionStorage object of the window' date=' we use the localStorage object. All the methods of localStorage are the same as sessionStorage.

 

we set items with setItem

we get items with getItem

Because items on the localStorage will persist forever, we may want to delete them. We can do this with localStorage.removeItem(key), using the key for the item we want to remove.

 

If we want to delete the entire localStorage, we can use localStorage.clear(). But, be warned, anything your app has saved to localStorage for this user is gone for good.[/quote']

 

There is an IE7 localstorage =http://www.jstorage.info/ but, really i'd just stick with window.localStorage

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...