lavanya_o
Posts: 1
|
Posted: 06/13/2008, 4:24 AM |
|
Could u please send me the code for how to read XML file using javascript.
_________________
from lavanya |
|
|
siap
Posts: 7
|
Posted: 07/01/2008, 1:29 PM |
|
try this
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
function loadXML(xmlFile)
{
xmlDoc.async="false";
xmlDoc.onreadystatechange=verify;
xmlDoc.load(xmlFile);
xmlObj=xmlDoc.documentElement;
}
i use this for js tree control
<script>
tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
tree.setImagePath("../js/dhtmlxTree/imgs/csh_scbrblue/");
tree.loadXML("comunes/xml/GCatalogoXML.xml);
</script>
_________________
Unidad de TI
Sistemas Administrativos y Financieros
Direccion Nacional de Informática
|
|
|
|