Hi all,
I have this custom combobox with autosuggestion, the 2 data is from 2 different MySql Select, name.php and surname.php:
[code]scheduler.form_blocks[“combo_select”]={
render:function(sns){
var html="
";
return html;
},
set_value:function(node,value,ev){
if (!this._node_init){
node.combo1 = new dhtmlXCombo("c1", "c1", 150);
node.combo1.loadXML("php/name.php");
node.combo2 = new dhtmlXCombo("c2", "c2", 150);
node.combo1.attachChildCombo(node.combo2, "php/surname.php");
this._node_init = true;
}
},
get_value:function(node,ev){
var a = node.combo1.getComboText();
var b = node.combo2.getComboText();
return a+b;
},
}[/code]
This works very well, when i select name in first select, appears the second select with surname rows.
My question is:
There is the possibility when I select the name in first combo in second combo appears the associated surname value and not the all list of surname?
In case of grouped combos , child one will include in server request “parent=ID” , so server side script can use this parameter to filter list of possible values.
This code insert only the combo2 value in my DB and seems to work fine.
After insert the value of combo2 in DB and EDIT the events I view the relative value in my combo2 select but when i refresh the scheduler page and re-edit the events it’s blank.
Can you help me?
Thank you in advance.
Sondra
Sorry my code don’t work fine.
If I insert a new event without refresh page , in lightbox I view the previous value of combo2.
Some problem of event ID ?
Can you help me?
Thank you.
Sondra
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan