Local storage option

Add-in Express™ Support Service
That's what is more important than anything else

Local storage option
 
Laveena James




Posts: 7
Joined: 2010-09-16
Hi,

Is there any local storage option to store the values in system? After installing the toolbar i need to store the values and retrieve values anywhere in the system such as like local storage in chrome and pref.js in firefox. Like that any for IE?


Thanks,
Posted 16 Sep, 2010 07:53:17 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Laveena,

You can use the following code to get the path where you can store your own data files:

AddinExpress.IE.ADXIEProtectedModeAPI api = new AddinExpress.IE.ADXIEProtectedModeAPI();
if (api.IsProtectedModeOn)
{
    string pathToFolder = api.GetWriteableFolderPath();
}
else
{
    // you can use any here, for example, a user profile
}

Also you can read more about local storage in MSDN. This feature was introduced in IE 8.
.NET, Extended MAPI, Windows Phone & RT
Posted 16 Sep, 2010 08:49:22 Top
Laveena James




Posts: 7
Joined: 2010-09-16
Hello Eugene,


Thank you for your response. Is it possible to store the values in local storage from all IE versions ? Any other option for this?
Posted 25 Sep, 2010 05:50:23 Top
Andrei Smolin


Add-in Express team


Posts: 14961
Joined: 2006-05-11
Hi Laveena,

No, the local storage is available in IE8 and higher. Unforunately, I can suggest no other ways.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Sep, 2010 06:01:04 Top
Laveena James




Posts: 7
Joined: 2010-09-16
Hello,

Thank you for your coordination.

I want to call the function once when toolbar load(When opening browser) and store this result in a variable. I need to retrieve/access this value entire browser session (still browser close).

Which event i can call for this option can you suggest us ?
Posted 27 Sep, 2010 07:20:14 Top
Andrei Smolin


Add-in Express team


Posts: 14961
Joined: 2006-05-11
Hi Laveena,

In HowTo: Synchronize settings of an IE plug-in, we describe a way to have a global setting accross all available IE proecesses.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Sep, 2010 08:38:07 Top