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.

Cookies in LogicMachine app
#1
Hello,

I read the following paragraph in the documentation for creating LogicMachine apps:



[Image: cookies-documentation.png]


However, in my JavaScript code, the object "Cookie" is unknown:

[Image: Cookie-not-defined.png]

so, in JavaScript, how do access this "Cookie global object" referenced in the documentation?
Reply
#2
You need to load the libraries before using Cookie functions:
Code:
<script src="/apps/js/jquery.js.gz"></script>
<script src="/apps/js/apps.js.gz"></script>

Alternatively you can use localStorage: https://developer.mozilla.org/en-US/docs...calStorage
Reply


Forum Jump: