2

I'm working with JavaScript, HTML and PHP on this website where I have a GUI quite similar with an IDE. What I'm trying to say is that I have multiple tabs with diferrent buttons that generate multiple forms on a big .

When I'm done with filling all the fields from these multiple forms, it will lately all be exported into a JSON object. But that's not the problem for now.

The big issue here is all about keeping the information and allowing the user to later edit it before exporting everything to JSON.

Any sugestions?

Regards

rk22
  • 25
  • 5

2 Answers2

1

you need two way data binding, jquery is good or angular has great options for this kinda stuff.

kangoroo
  • 359
  • 2
  • 10
1

Since its JSON Object. you can change like below.

var json = '{"result":true,"count":1}',
    obj = JSON.parse(json);

alert(obj.count);

Refer for more information Parse JSON in JavaScript?

To Store the JSON into HTML5 Localstorage Concept will help you.

  1. Storing Objects in HTML5 localStorage
  2. Push JSON Objects to array in localStorage

I Prefer BackBoneJS

Check the below SO Answer

Backbone.js Multi-Step Form

Community
  • 1
  • 1
Venkat.R
  • 7,420
  • 5
  • 42
  • 63