thron7-2 wrote:
>
>
> Great. This looks good. The packages for the parts are created. The
> callcenter2.steps.Step0 class is included in a package for the "Step0"
> part. It looks like the generation worked ok. Now we have to see that
> loading and evaluation works.
>
> One thing: I see you are creating the build version of your app. How is
> the source version? Is it working in the source version?!
>
> Could you also post your current call to qx.io2.PartLoader.require(),
> including the call back function.
>
> Could you also try a version with explicit (literal) parameters, like
>
> qx.io2.PartLoader.require(["Step0"], ... var instance = new
> callcenter2.steps.Step0();...);
>
> Thanks,
> Thomas
>
i have not tryied the source version, the script depends on some backend in
php which i have only created in our testing environment. i will try to
upload the source version manually into this.
first here is the code which loads the Step0 class by name
...
qx.io2.PartLoader.require([name], function() {
this.info("createStep: " + name);
this.atmStep.setLabel(name);
var clazz =
qx.Class.getByName("callcenter2.steps."+name);
// neue Instanz des Steps erzeugen
var next = new clazz(this.userdata);
// View holen
if(next.getView() == "") {
this.setHtmlSource(name);
} else {
this.setHtmlSource(next.getView());
}
this.viewStep = next;
this.scroll.add(this.viewStep);
next.addListener("loadStep",
this._changeStep, this);
next.addListener("loadView",
this._loadHtml, this);
if(name != "WV")
this.userdata.setStep(name);
}, this);
...
--
View this message in context:
http://n2.nabble.com/PartLoader-and-Class-getByName-tp3668151p3691774.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel