Combo with xml

hi, i have this code on my admin.php just to try it







test























and my Complete.php has this.





<?php

header(“Content-type: text/xml”);



echo ‘<?xml version="1.0" encoding="UTF-8"?>’;



echo ‘’;

echo ’    ‘;

echo ’    a’;

echo ’    b’;

echo ’    ';

?>





and i cant get any option on my combo, sry for my english.



thanks in advance


Hello,


try to use the following


var z = new dhtmlXCombo(“combo_zone”, “alfa”, 200);
z.enableFilteringMode(true);
z.loadXML(“Complete.php”);



still not working, i cant figure out what i m doing wrong please help me T_T

If you use dhtmlXCombo constructor, you should use div as a container:

Also check that doOnLoad() method is called after container is loaded:

Please check the sample in combo package dhtmlxCombo/samples/04_filtering/02_combo_filter.html