Closed FeXd closed 1 year ago
https://developer.mozilla.org/en-US/docs/Web/API/FormData
found an api that could help us in getting the form data and turning it into json
I think using FormData
would be possible, but am thinking we should just stay with basic DOM Manipulation via creating our own DOM tree: https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/How_to_create_a_DOM_tree
Also do not get hung up with the JSON
part. We really just want to make a JavaScript object and we can easily call JSON.stringify()
on the object to turn it into JSON later.
Wireframe looks good. Mockup is ok, but I'd consider just using default styling of the browser for now. Just a regular looking form.
@Raunaq27 did a demo this morning and functionally things are looking great!
Some interface feedback I'd like to see updated:
[ { 'question' : 'ds', 'answer' : 'sdfd' }, ... ]
Merged with #21
Create a simple webpage using basic HTML, CSS, and JavaScript, that has a
<form>
and allows users to createJSON
that have questions and answers, similar to the JavaScript Objects that we are using in interactive learning JavaScript thus far.Users should be able to add and remove questions from a form interactively, and then when they are finished, they click a Submit button, which generates the JSON and outputs it to the screen.
Implementation
drag-and-drop
index.html
,script.js
,style.css
jquery
Expectations