Categories | Question details Back To List | ||
Combobox How to write urls in xml file? Hi! Sorry for my english! Help me please! How to make the hyperlink for every unique item in the list, after finding this item and clicking or pressing enter button For example: <?xml version="1.0" ?> <complete> <option value="1">msn</option> <option value="2">yahoo</option> <option value="3">google</option> </complete> So If I type msn in the box and press enter i want to visit http://www.msn.com If I type yahoo in the box and press enter i want to visit http://www.yahoo.com If I type google in the box and press enter i want to visit http://www.google.com How to make it real with dhtmlxcombo? Thank you in advance Answer posted by Support on Apr 07, 2008 05:36 You can use <?xml version="1.0" ?> <complete> <option value="msn.com">msn</option> <option value="yahoo.com">yahoo</option> <option value="google.com">google</option> </complete> and in js code var z = new dhtmlXCombo(... z.loadXML(.... z.attachEvent("onChange",function(){ document.location.href="http://"+z.getActualValue(); }); |