Local Storage

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

Local Storage
 
Harald Holzmann




Posts: 39
Joined: 2017-08-08
Hello all,

my question is: Is it possible to access the local storage? What is the beste option for persistent storage? SQLite?

Thanks for your support,
Harald
Posted 08 Aug, 2017 02:30:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Harald,

Please try to use the 'shared memory' feature of Add-in Express for IE.
https://www.add-in-express.com/creating-addins-blog/2009/06/19/internet-explorer-plugin-settings-synchronize/

Or just save your data to a file via a broker application.
Posted 08 Aug, 2017 08:35:05 Top
Harald Holzmann




Posts: 39
Joined: 2017-08-08
Hello Sergey,

thank you for your answer. For me the example looks a little bit complicated and I am not so familiar with vb.net. Do you have also a C# example available? Otherwise i will try the SQLite way.


And one more thing you don't have exectly answered my question, about local Storage. This would be of cource the best an prefered way to store data in a add-on/extension. Do you have any idea aber reading/storing data in the local storage?

Thanks and kind regards,
Holzmann Harald
Posted 08 Aug, 2017 08:43:25 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Harald,

The local storage is not available directly via the IE and MSHTML object models. You can use it in javascript only.
However you can use the 'execScript' method of HTMLWindow2 object to execute javascript code from C#. As far as I know, the local storage doesn't work properly in IE. It may not share data between browser instances.

As to the example, you can download the project written in C# using the following link:
https://www.add-in-express.com/files/howtos/blog/adx-ie-shared-memory-cs.zip
Posted 09 Aug, 2017 10:11:46 Top