Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MaLa on Aug 14, 2008 04:59
open dhtmlx forum
DHTML Combobox - Direct URL link by selecting a list entry

Hi,

how can I use the combobox (in combination with a data.xml) with a direct hyperlink on each list entry.
In your example script there is first entry "one", then "two" etc. So how can I go to "one.html" by selecting the entry "one".

Thanx for your answer.
Answer posted by Support on Aug 14, 2008 06:01
You can attach onChange event and use any custom logic

combo.attachEvent("onChange",function(){

     document.location.href=combo.getActualValue()+".html"; //just a sample, in real life any code can be placed here

});
Answer posted by MaLa on Aug 14, 2008 14:15
Thanx, it works great!!!