[ascoders] XML

  • From: "Peter Oliver Geller" <nc-gellerpe@xxxxxxxxxxxxx>
  • To: <ascoders@xxxxxxxxxxxxx>
  • Date: Thu, 2 Oct 2003 10:45:01 +0200

Hi kurze Frage?,

vielleicht lieg ich ja ganz falsch aber ich dachte ich könnte in meine
table Klasse ein xml file laden,
aber irgendwie bekommt this.sampler nix, wieso nicht?

table = function(xml){
        this.sampler = new XML();
        this.sampler.ignoreWhite = true;
        this.sampler.onLoad = this.geladen();
        this.sampler.load(xml);
}

TSW = table.prototype;

TSW.geladen = function(){
        trace(sampler.xmlDecl);
        trace(sampler.status);
        trace(sampler.docTypeDecl);
        trace(this.sampler);
        //this.tableParser(sampler);
}

discography = new table("sampler.xml");

Gruß

Peter

Other related posts: