using XML data in DesktopX
most likely a stupid question...
Hi,
I want to call some data from a xml file...
my script doesn't give me errors which is a good start but there is no data pulled out of my xml-file...
//writing to the buttons on the welcome page
var xmlDoc=null;
xmlDoc= new ActiveXObject("Microsoft.XMLDOM");
if(xmlDoc!=null){
xmlDoc.async=false;
xmlDoc.load("C:/Documents and Settings/Administrator/My Documents/Stijn/fileloc.xml");
file=xmlDoc.getElementsByTagName("file");
for(i=0;i<=5;i++){
if (i<file.length){
DesktopX.Object("choice"+i).visible=1;
DesktopX.Object("choice"+i).text= file[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;}
else DesktopX.Object("choice"+i).visible=0;
}
}
does somebody knows what is going wrong??
& is there a way to make relative links??
thanks!!!!