webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
796 stars 271 forks source link

Is there any local storage example? #169

Closed willess closed 7 years ago

willess commented 7 years ago

I'am desperate looking for an example with local storage. Can someone help me?

MSIH commented 7 years ago

What purpose do you want to use local storage? Did you save some data in local storage and now you want to render in the grid?

willess commented 7 years ago

I do have a html grid. And when I edit a cell I want to save the filled in data. So, when you refresh the page, you still see the data that's filled in.

curtisnewton commented 6 years ago

yes, the same here ... loading data from a .json file, but how to save changes or added lines??? i know, javascript are not allowed to save to the webserver (sure, security), but PHP can do it. But how to get the array data from javascript to a php dara array??? there are no examples here ... why not? Thanks

donlaur commented 6 years ago

Php is server side. JavaScript is client side. Meaning that php runs first on the server and is sent to the client and run on the client.

You want to get the array data from JavaScript to PHP? Can't do it naturally but could maybe use something like Ajax or an API call to save out.

Sent from my iPhone

On Jan 30, 2018, at 7:22 AM, curtisnewton notifications@github.com wrote:

yes, the same here ... loading data from a .json file, but how to save changes or added lines??? i know, javascript are not allowed to save to the webserver (sure, security), but PHP can do it. But how to get the array data from javascript to a php dara array??? there are no examples here ... why not? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.