|
I’m using the QxBuilder.buildFromUrl feature. I
looked around in the subversion and in the mailing list archive but I didn’t
find any report of this problem I found. In the actual version the source code
looks like this: proto.buildFromUrl = function(parent, url) { var loader = new QxXmlHttpLoader(); var self = this; loader.addEventListener("complete",
function(e) { self.build(parent, e.getData()); e.preventDefault(); self.dispatchEvent(new
QxEvent("done"), true); }); loader.load(url); }; It uses QxXmlHttpLoader object that is not defined
anywhere. So I made a correction myself: proto.buildFromUrl=function(parent,url) { var
loader=new QxRequest(url, "GET", "text/plain"); var
self=this; loader.addEventListener("completed",
function(e) { var
parser = new DOMParser(); var
xmldoc = parser.parseFromString(e.getData().getContent(),
"text/xml"); self.build(parent,
xmldoc.documentElement); e.preventDefault(); self.dispatchEvent(new
QxEvent("done"),true); }); loader.send(); }; It works fine now. |
- [qooxdoo-devel] buildFromUrl problem Marco Emiliozzi
- Re: [qooxdoo-devel] buildFromUrl problem Sebastian Werner
