Logic Machine Forum
Access Storage data from JavaScript - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Access Storage data from JavaScript (/showthread.php?tid=2325)



Access Storage data from JavaScript - DGrandes - 06.11.2019

Hi,

Is there any way to get or update data from storage in JavaScript.

In lua:
 storage.set
 storage.get

Thanks


RE: Access Storage data from JavaScript - admin - 07.11.2019

There's no direct support for storage functions in Custom JS. You would need to create a separate .lp to handle this. Or you can use a 250-byte text object if your storage data is short.


RE: Access Storage data from JavaScript - DGrandes - 09.11.2019

(07.11.2019, 09:16)admin Wrote: There's no direct support for storage functions in Custom JS. You would need to create a separate .lp to handle this. Or you can use a 250-byte text object if your storage data is short.

Ok, Thanks


RE: Access Storage data from JavaScript - Joep - 11.11.2019

You can use the local storage in Javascript: localStorage.setItem(myItem, myValue);
But as the name already says it's only local (clientside).


RE: Access Storage data from JavaScript - DGrandes - 17.05.2024

Is there any way to do this now?


Get or update data from Logic Machine storage by JavaScript.

In lua:
 storage.set
 storage.get

Thanks


RE: Access Storage data from JavaScript - admin - 17.05.2024

No changes in this regard.