Categories | Question details Back To List | ||
DhtmlxTree Dear Support Team! A would like make tree menu without extra picture.Under firefox working fine but IE 7 made picture box without picture. The code: <script> tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); tree.setImagePath("js/imgs/"); tree.enableDragAndDrop(0); tree.enableTreeLines(false); tree.setImageArrays("plus","","","","plus_ar.gif"); tree.setImageArrays("minus","","","","minus_ar.gif"); tree.setStdImages("","",""); tree.setXMLAutoLoading("menu_xml.php?language=<?php echo $_SESSION["language"];?>"); tree.loadXML("menu_xml.php?language=<?php echo $_SESSION["language"];?>"); </script> the xml: <?xml version="1.0"?><tree id="0" radio="1"><item text="The Mexican Caribbean" id="The Mexican Caribbean" ><item text="Cancun" id="Cancun"/><item text="The Riviera Maya" id="The Riviera Maya"/><item text="Playa del Carmen" id="Playa del Carmen"/><item text="Tulum" id="Tulum"/><item text="Holbox island" id="Holbox island"/><item text="Majahual" id="Majahual"/></item><item text="The colonial Mexico" id="The colonial Mexico"><item text="Mexico City" id="Mexico City"/><item text="Guadalajara" id="Guadalajara"/><item text="Guanajuato" id="Guanajuato"/><item text="Veracruz" id="Veracruz"/><item text="Morelia" id="Morelia" /><item text="Zacatecas" id="Zacatecas"/></item><item text="Deserts, mountains and canyons" id="Deserts , mountains and canyons"><item text="Chihuahua" id="Chihuahua"/><item text="Sonora" id="Sonora"/><item text="Jalapa" id="Jalapa"/><item text="Huazteca" id="Huazteca"/></item><item text="The Pacific coast" id="The Pacific coast"><item text="Caborca" id="Caborca"/><item text="Puerto Vallarta" id="Puerto Vallarta" /><item text="Acapulco" id="Acapulco"/><item text="Mazatlan" id="Mazatlan"/><item text="Huatulco" id ="Huatulco"/><item text="Puerto Escondido" id="Puerto Escondido"/></item><item text="Baja California" id="Baja California"><item text="Los Cabos" id="Los Cabos"/><item text="Loreto" id="Loreto"/><item text ="La Paz" id="La Paz"/><item text="Ensenada" id="Ensenada"/></item><item text="Chiapas" id="Chiapas" ><item text="Palenque" id="Palenque"/><item text="San Cristobal" id="San Cristobal"/><item text="Lagos de Montebello" id="Lagos de Montebello"/><item text="Sumidero kanyon" id="Sumidero kanyon"/></item> </tree> Firefox don't show blank picture box,but IE7 7.0.5730.13 yes Thanks your help Answer posted by Alex (support) on Mar 16, 2009 04:18 Hello, You can use enableTreeImage method. This is special method to not show all tree icons. Try to use this method instead of tree.setStdImages("","",""): ... tree.enableTreeImage(false); tree.setXMLAutoLoading("menu_xml.php?language=<?php echo $_SESSION["language"];?>"); Answer posted by aspi on Mar 16, 2009 12:00 Thanks working fine |