On Oct 29, 10:30 am, "Jan Limpens" <[EMAIL PROTECTED]> wrote:
> hello,
> then I get from somewhere
>
> [{"id":1,"Choice":"two"}]
>
> Then the form should get into this state:
>
> <form>
> <input type="text" name="id" value="1">
> <select name="choice">
> <option value="one">one</select>
> <option value="two" selected="selected">two</select>
> </select>
> <form>
>
> Is this implemented somewhere?

not that I know of.
It's tricky but I think you could do it reasonably quickly using some
javascript.
Something like this:

(not tested!)

<form name='myform'>
<input type="text" name="foo" value="1" />
<input type="text" name="bar" value="1" />
</form>

var jsondata = { foo:'x',  bar:'y'  };
for ( prop in jsondata )
  document.myform[prop].value = jsondata[prop];

Reply via email to