i want to go form data dynamically using json

my code :

var formData = [
{type:“setting”, labelWidth:90, position:“label-left”, labelAlign:“left”},
{type:“select”, label:“receive_group”, width:250, name:“receive_group”, connector:
“json.do?service=comboList&id=receive_group”
},
{type:“select”, label:“receive_man”, width:250, name:“receive_man”}
];

i want to get select’s option data dynamically from server.

how to make json format?

go -> get T,.T

hi

connector used in init used once to load options on init
to update them dynamicaly you need to:
myForm.getCombo(name) // returns fombo instance
or
myForm.getSelect(name) // returns select dom element
and update options manualy

ok i have one more question.

dhtmlxCombo’s adding Options : docs.dhtmlx.com/doku.php?id=dhtm … ng_options

  1. from XML : z.loadXML(“xml/data.xml”);

it’s your documentation sample…

but i will use JSON, no XML

so

z.loadXML(“json.do”); // “json.do” is that make json file

how to make json format…

your exmaple is xml everone.

XML file example format : “xml/data.xm”

one
two
three
four
five
six
seven
eight
nine
ten

i want to conversion JSON file

i want to know json format…

combo does not support json