Mittels lokale Kopie so gemeint (?) :
var gThis = null; //<---
Nein.
fProt.prototype.readXML = function(URL)
{
var req = this.createHttpRequest();gThis = this; //<---
Ja. Aber hier mit var
var gThis = this; //<---
req.open("GET", URL, true);
req.onreadystatechange = function()
{
if(req.state == 4)
{
if(req.status != 200)
alert("ERROR");
else
this.parseXML(req.responseText);
und hier dann:
gThis.parseXML(req.responseText);
Struppi.