Categories | Question details Back To List | ||
images from XML file I have a combobox defined like this... var service_id= new dhtmlXCombo("combo_service_id", "service_id", 300, "image"); service_id.loadXML("./includes/services_menu.php"); service_id.enableFilteringMode(true); My XML looks like this... <?xml version="1.0" encoding="ISO-8859-1" ?> <complete add="true"> <option value="1" img_src="http://hair/images/serviceicons/hair.gif">Hair: Women's Hair Cut</option> <option value="40" img_src="http://hair/images/serviceicons/nails.gif">Nails: Airbrush</option> <option value="3" img_src="http://hair/images/serviceicons/waxing.gif">Waxing / Hair Removal: Lip Wax</option> </complete> I don't get images in the list. What am I doing wrong? Walter Answer posted by Support on Dec 14, 2007 10:08 Having img_src is not enough Please be sure that dhtmlxcombo_extra.js included in project and while initializing combo you are set type of used options ( please refer to sample, included in package ) Answer posted by Walter on Dec 14, 2007 10:38 > refer to sample... Yes, well, it never occurred to me to open the sample files and read the source (but I will from now on). I just read the documentation and the SAMPLE tab there... Adding images to dhtmlxCombo It does not mention anything about a secondary file. But thank you for the clarifcation. Again, thank you for your time, responses and tool. Walter |