Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dennis on Dec 28, 2007 12:32
open dhtmlx forum
Cascading Comboboxes

Hello,

Is it possible to have cascading combo boxes? For example, in the onBlur function of the first combo box, initialize the second combo box based on the value from the first. I could not figure out how to use the dynamic loading portion of enableFilteringMode(). Is it possible for the server script to receive a GET variable? For example enableFilteringMode(true, 'script.php?id=' + theID, true).

Thank you for your help,

Dennis
Answer posted by Support on Jan 14, 2008 08:35
>>For example, in the onBlur function of the first combo box
onBlur occurs when focus moved, but doesn't guarantee that value changed, so using onChange is more stable solution

    combo1.attachEvent("onChange",function(){
       combo2.loadXML(some) // value of combo1 = combo1.getActualValue();
    };

>>I could not figure out how to use the dynamic loading portion of enableFilteringMode()
In dynamic filtering , combo will call script set as parameter of filtering command and add "mask" parameter to it. Code expects that server side script will return XML with possible options.

>>s it possible for the server script to receive a GET variable?
Yes , you can use any valid URI