I have a JSON object that is returned inside a function (see below) and that in turn is inside a parent function and then a global function. There is a further child function within that global function that needs access to the JSON to parse the records.
I have left out some things that are not really part of the problem but hopefully included enough to explain the problem I have! You can see that
MyFunc.prototype.CreateMine = function(){
//do some work...
submit: function(e,v,m,f){
var xhr = new jsonRequest()
xhr.onreadystatechange = function(){
var jsonText = JSON.parse(xhr.responseText); //jsonText now contains my data
};
}
//need to access jsonText...
}
}
Let me know if the example of not complete enough, thanks in advance Chris