This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Access Storage data from JavaScript
#1
Hi,

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

In lua:
 storage.set
 storage.get

Thanks
Reply
#2
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.
Reply
#3
(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
Reply
#4
You can use the local storage in Javascript: localStorage.setItem(myItem, myValue);
But as the name already says it's only local (clientside).
Reply
#5
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
Reply
#6
No changes in this regard.
Reply


Forum Jump: