Re: [xmljs-users] XML help..
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2006-01-03 16:47:49
|
Hello Craig, If you're using XML for , you can use its ability to load local XML files from within the browser without having to refresh the page. Take a look at http://xmljs.sourceforge.net/website/tools-loadLocalXML.html for the documentation. If you're using other XML technologies, another option would be to make an XMLHTTPRequest to get the data. I don't have a good link for this right off hand, but a quick search should get you going... Best regards, David ----- Original Message ---- From: Craig Atkin <cr...@at...> To: xml...@li... Sent: Mon 02 Jan 2006 04:33:48 AM MST Subject: [xmljs-users] XML help.. Hi, I have a XML file that looks like the following. Data.xml <?xml version="1.0"?> <ControlME> <CurrentPresets> <Var0>2</Var0> <Var1>345</Var1> <Var2>34</Var2> <Var3>455</Var3> <Var4>1</Var4> <Var5>54</Var5> <Var6>67</Var6> </CurrentPresets> </ControlME> These values are constantly updating. I was wondering if any one would have a simple example of getting the values into a web page via button alert. eg: <input type="button" onclick="alert(getData('Data.xml', 'Var0'))" value="Var0"> Regards Craig ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |