Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ismail on Jan 08, 2008 05:21
open dhtmlx forum
Re: "DHTMLXCombo getting started in HTML?

Hi, Thank You for the assistance
I've tried that but no luck - Please Assist my hmt file lies in the directory of the DHTMLCombo folder ="../codebase/ - this is ok?

What can i do?

<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>  

Answer posted by Support on Jan 09, 2008 11:07
You code is actually correct, please check attached sample, it uses it - and works correctly.
Please be sure that js files exist in their location.
Attachments (1)