Categories | Question details Back To List | ||
DHTMLXCombo getting started in HTML? Hi, I need help please. I need to get this going in a lookup to a database in an xslt file. but i can't seem to get just the initial one going in HTML. It shows the dropdown in the normal way in IE7, at the bottom it says 'dhtmlxcombo' is undefined, <html> <script src="../codebase/dhtmlxcommon.js"></script> <script src="../codebase/dhtmlxcombo.js"></script> <link rel="STYLESHEET" type="text/css" href="../codebase/dhtmlxcombo.css"> <script> window.dhx_globalImgPath="../codebase/imgs/"; </script> <select style='width:200px;' id="combo_zone1" name="alfa1"> <option value="1">a00</option> <option value="2">a01</option> </select> <script> var z=dhtmlxcomboFromSelect("combo_zone1"); </script> <script src="../codebase/dhtmlxcommon.js"></script> <script src="../codebase/dhtmlxcombo.js"></script> <link rel="STYLESHEET" type="text/css" href="../codebase/dhtmlxcombo.css"> <div id="combo_zone2" style="width:200px; height:30px;"></div> <script> var z=new dhtmlxcombo("combo_zone2","alfa2",200); </script> </html> Please Assist i need to get this going! Answer posted by Support on Jan 08, 2008 04:07 JavaScript is case sentensive so you need to use var z=dhtmlXComboFromSelect("combo_zone1"); instead of var z=dhtmlxcomboFromSelect("combo_zone1"); and var z=new dhtmlXCombo("combo_zone2","alfa2",200); instead of var z=new dhtmlxcombo("combo_zone2","alfa2",200); |