Categories | Question details Back To List | ||
Combo with xml hi, i have this code on my admin.php just to try it <html> <head> <title>test </title> <script> window.dhx_globalImgPath = "../../jsFiles/codebase/imgs/"; </script> <link rel="STYLESHEET" type="text/css" href="../../jsFiles/codebase/dhtmlxcombo.css"> <script src="../../jsFiles/codebase/dhtmlxcommon.js"></script> <script src="../../jsFiles/codebase/dhtmlxcombo.js"></script> <script> function doOnLoad() { var z = new dhtmlXCombo("combo_zone", "alfa", 200); z.enableFilteringMode(true); z.loadXML("Complete.php", true, true); } </script> </head> <body> <select id="combo_zone" style='width:200px;' name="alfa"></select> </body> and my Complete.php has this. <?php header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="UTF-8"?>'; echo '<complete>'; echo ' <option value=""></option>'; echo ' <option value="a">a</option>'; echo ' <option value="b">b</option>'; echo ' </complete>'; ?> and i cant get any option on my combo, sry for my english. thanks in advance Answer posted by Alex (support) on Jan 23, 2010 02:59 Hello, try to use the following var z = new dhtmlXCombo("combo_zone", "alfa", 200); |