In my scheduler script I have the following code (based on snippet found on this forum):
[code]scheduler.form_blocks[“my_editor”]={
render:function(sns){
return "<div class='dhx_cal_ltext' style='height:45px;margin:0px;'><table border='0' width='100%' cellpadding='0' cellspacing='0'><tr><td><div style='color: navy; float:left;'>Customer:</div><div id='combo_zone_customer' style='width:450px;float:right;'></div></td><td width='5px'></td></tr><tr><td><div style='color: navy;float:left;'>Address:</div><div id='combo_zone_address' style='width:450px;float:right;'></td><td width='5px'></td></tr></table><input type='hidden'></div><input type='hidden'></div>";
},
set_value:function(node,value,ev){
var inps = node.getElementsByTagName("INPUT");
if (!node.combos){
window.dhx_globalImgPath = “…/…/combo/imgs/”;
var comboA = node.comboA = new dhtmlXCombo(“combo_zone_customer”,“dummy”,“450px”);
comboA.enableFilteringMode(true, “…/…/combo/autocomplete.asp?uid=<%=uid%>&ter=<%=currterr%>”, true, true);
comboA.loadXML("…/…/combo/autocomplete.asp?uid=<%=uid%>&ter=<%=currterr%>",function(){
comboA.setComboValue(ev.customer_drop||"");
comboA.attachChildCombo(comboB, “…/…/combo/autocompleteloc.asp”);
});
var comboB = node.comboB = new dhtmlXCombo(“combo_zone_address”,“dummy”,“450px”);
comboB.readonly(true);
comboB.loadXML("…/…/combo/autocompleteloc.asp",function(){
comboB.setComboValue(ev.address_drop||"");
});
node.combos = true; //added! // CHANGED
return;
}
node.comboA.setComboValue(ev.customer_drop||""); // CHANGED
node.comboB.setComboValue(ev.address_drop||""); // CHANGED
},
get_value:function(node,ev){
var inps = node.getElementsByTagName("INPUT");
ev.customer_drop= node.comboA.getComboText();
ev.address_drop= node.comboB.getComboText();
},
focus:function(node){
var inps = node.getElementsByTagName("INPUT");
inps[0].focus();
}
}
[/code]
And in the lightbox section I have:
{ name:"customer", map_to:"dummy", type:"my_editor" },
How do I map comboA and comboB to lightbox form elements, or rather, how do I retrieve the values in my dataprocessor (written in ASP) script?
My dataprocessor tries to retrieve them like this:
custid = request.Form(eventID&"_customer_drop")
addressloc = request.Form(eventID&"_address_drop")
but that is not working.