N.Marzio Posted March 6, 2021 Share Posted March 6, 2021 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 6, 2021 Share Posted March 6, 2021 Hello, Read or write? Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted March 6, 2021 Author Share Posted March 6, 2021 Read and Write. Tks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 6, 2021 Share Posted March 6, 2021 26 minutes ago, N.Marzio said: Read and Write. ? Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted March 7, 2021 Author Share Posted March 7, 2021 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.