Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 03, 2009 03:15
open dhtmlx forum
show dynamically value of the below code

Hello,

IN the below code there are static data shown in the checkbox with combo . i want to show dynamically data of that combobox with checkbox.
please sen dme code .


this is my code




<script>



window.dhx_globalImgPath = "http://localhost/seema/combo_test/codebase/imgs/combo_select.gif";



</script>

<link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxcombo.css">

<script src="codebase/dhtmlxcommon.js"></script>

<script src="codebase/dhtmlxcombo.js"></script>

<script src="codebase/ext/dhtmlxcombo_extra.js"></script>





<h3>Image Select</h3>

<div id="combo_zone2" style="width:200px; height:30px;"></div>

<h3>Checkbox Select</h3>

<div id="combo_zone3" style="width:200px; height:30px;"></div>

<script>



var z = new dhtmlXCombo("combo_zone2", "alfa2", 200, 'image');

z.setDefaultImage("common/images/book.gif");

z.loadXML("common/data_03_options.xml");

var z = new dhtmlXCombo("combo_zone3", "alfa3", 200, 'checkbox');

z.addOption([[1, 1111], [2, 2222], [3, 3333], [4, 4444], [5, 5555]]);



</script>


Answer posted by Alex (support) on Dec 03, 2009 05:12

Hello,

the same sample as http://www.dhtmlx.com/docs/products/dhtmlxCombo/samples/04_filtering/

but there should 'checkbox' as the 4th parameter of dhtmlXCombo and dhtmlxcombo_extra.js included