xml quickie
xml quickie
Out of context: Reply #3
- Started
- Last post
- 8 Responses
- Seph0
firstly you need to create an onload function for when the xml is loaded
myXml .onLoad = function(sucess) {
if (sucess) {
processfunc(myXml );
}then load the XML itself
myXml.load('images.xml');
then write the function called 'processfunc' (called when loaded) that will get the number that you need.
Im not exactly sure what you are after but perhaps something like this:
function processfunc(myXml) {
numofImages = myXml.firstChild.childNodes.leng...
}
Well its definately something like that anyroad...