Hello,
I’d like to pass a parameter into the xml.onload function.
Usually we have:
myXML = new XML();
myXML.onLoad = handleLoad;
myXML.load(“whatever.xml”);
function handleLoad(success){
if(success){
//do something
}else{
//do something else
}
}
MY GOAL:
something like:
p=this;
myXML.onLoad = handleLoad(success,p)
…
function handleLoad(success,p){
…
}
I want to be able to pass a parameter § into the handleLoad function as well as track the onload success…
How do you do this?
thanks in advance…