wood242
August 28, 2012, 12:46am
#1
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?
Andrei
August 28, 2012, 8:55am
#3
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
wood242
August 29, 2012, 12:48am
#4
ok i have one more question.
dhtmlxCombo’s adding Options : docs.dhtmlx.com/doku.php?id=dhtm … ng_options
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…
Andrei
August 29, 2012, 12:04pm
#6
combo does not support json