Jump to content

Read LocalStorage


N.Marzio

Recommended Posts

Is it possible to read the Localstorate without using graphic components?

This is how it works:
    with UniEdit3.JSInterface do
       JSCall ('setValue', [jsstatement ('localStorage.getItem ("token")')]));
   ShowMessage (UniEdit3.Text);

How can I replace UniEdit3 with a variable?
Thank you

Link to comment
Share on other sites

Thanks for the demo.
But I see that it is necessary to always pass from a graphical interface event (UniFormAjaxEvent) in order to obtain the result of a JS function. Is it not possible through a JS function to directly obtain the result of this function in a local variable, without the help of the events of a form?
Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...