Populating fields, input types etc using JSON
Posted
by
Franco
on Stack Overflow
See other posts from Stack Overflow
or by Franco
Published on 2010-12-24T10:55:54Z
Indexed on
2010/12/24
16:54 UTC
Read the original article
Hit count: 304
I have a form that works as follows..
Server request builds XML of the data on server side and sends xml, XSL stylesheet then transforms the XML data into the plain html page distributing the data to the relevant/desired locations of the form on the page. Person can view page and edit the populated form, submit back to DB.
I think JSON is more suitable for this from what I have read. The form itself is split into 3 areas, for me this is 3 maps/associative arrays etc each with a name related to the id of an input element etc.
The problem for me comes with having the JSON sent to the page, what should I do with it next in order to achieve the same result as I currently get with XML and XSL.
Thanks.
© Stack Overflow or respective owner