Can I access LocalStorage from WiseJ?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

In javascript, I can access LocalStorage

ex:

localStorage.setItem(“lastname”, “Smith”);

can I set and read from localstorage in wiseJ?

Thanks,
Shawn

  • You must to post comments
0
0

See attached local storage sample with component.

  • You must to post comments
0
0

See attached local storage sample with component.

  • You must to post comments
0
0

You can using javascript. We don’t pass the local storage back to the server since it could be quite large. You can execute any js method directly using Application.Eval().

My suggestion is to add your javascript functions in .js file(s) part of your project and use the methods from the app. You can create either global js functions or create a js object with your functions, like a namespace. Your javascript code can also call back your application on the server using [WebMethod], including methods in Program.cs or on a top level page or window.

I noticed that Application doesn’t have the Call method to be able to automatically serialize parameters, will add.

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json