Local storage

Forum to discuss the Web client version of Servoy.

Local storage

Postby vantesterwalter » Wed Mar 29, 2017 4:40 pm

Hi

I'm using the local storage of my firefox browser to put data in from the HTML area.
Now I need to retrieve this data when I click on a button in Servoy.
The problem I have is that I don't now if this is possible through Servoy.
Is there a piece of code that can invoke this?

Thanks,
Walter
vantesterwalter
 
Posts: 15
Joined: Wed Mar 29, 2017 9:46 am

Re: Local storage

Postby rvanderburg » Wed Mar 29, 2017 9:48 pm

Maybe you can share what you are trying to achieve, that way I think we can answer your question better.
rvanderburg
Site Admin
 
Posts: 47
Joined: Wed May 04, 2011 10:28 am

Re: Local storage

Postby vantesterwalter » Thu Mar 30, 2017 8:13 am

Hi

I'm going to try to explain myself better.

I have made a Javascript project which is working just fine.
In this project I call the method³ localStorage.setItem("test", "testing");.
This is invoked when I press a button².
By doing this text I entert is pushed to the local storage in my firefox browser.

Now the Servoy side.
I made this kind of structure:
ServoyFrame.png

In the HTML_area I made an iframe ( <iframe src="toProject"></iframe> ) which is a direct link to the html page of my javascript project on my laptop.
This is working.
When I press the button² in my javascript project it's invoking the method³.
Everything is working like I want it to work.

The question:
When I press the button in my structure in Servoy, I want to get the data from the local storage in my firefox browser and push it in the textfield. (With html you would use localStorage.getItem("test"); to retrieve this data)
But I don't know if this is possible in Servoy and if it is, what is the correct String of code to achieve this?

I hope this explains my problem a bit more.

Thanks,
Walter
You do not have the required permissions to view the files attached to this post.
vantesterwalter
 
Posts: 15
Joined: Wed Mar 29, 2017 9:46 am


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 1 guest