Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ismail on Jan 09, 2008 22:53
open dhtmlx forum
DHTMLXCombo lookup from the database then incorporate in xslt

Thanks for the help!
My drop down works fine now, "./" only the one dot!

Can you please assist me on doing a lookup from the database!

And then I have to incorporate it in an existing xslt!

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

</html>

Please Assist, Regards!
Answer posted by Support on Jan 10, 2008 03:26
If you want poll options from DB you need to change code in next way

var z=dhtmlXComboFromSelect("combo_zone1");
z.enableFilteringMode(true,"my_script.php");

where my_script.php - name of script which will be used to fetch data from DB, if you are using PHP - you can take dhtmlxCombo\samples\filtering\complete.php as a base