thron7-2 wrote:
>
>>> So, can you verify the class custom.ClassA is loaded?
>> no, i have no idea how? its my first attempt with parts and partloading.
>
> Don't worry about the part loading. After the call to PartLoader.require
> has finished (which becomes apparent in the call-back function you're
> providing, the one you used console.log() in), you should be able to check
> that the new classes have been loaded. I don't know which browser and
> tooling you are using on the client side, but with the popular Firebug
> extension for Firefox, just go to the console prompt and type
> "custom.ClassA" (without the quotes) into it. If the class is known,
> Firebug will throw something like "function()" back to you. Entering
> "custom.ClassA()" should produce something like "object ...".
>
> Have you read http://qooxdoo.org/documentation/0.8/parts_using ?
>
> Defining working parts is currently a bit tricky. Can you post your
> "packages" key definition from your config.json?!
>
>
> T.
>
the class is not loaded. im using firefox with firebug.
here is my packages definition.
, "packages" :
{
"parts" :
{
"boot" :
{
"include": ["${QXTHEME}",
"callcenter2.Application",
"callcenter2.Assistant"],
"expected-load-order" : 1
},
"Step0" : {
"include" : [ "callcenter2.steps.Step0" ]
}
},
"sizes" :
{
"min-package" : 1,
"min-package-unshared" : 1
},
"init" : "boot",
"loader-with-boot" : true
}
im trying to geht "Step0" loaded as part.
firebug gave me "TypeError: callcenter2.steps is undefined" when i enter
"callcenter2.steps.Step0" into the console after loading. i think im missing
something.
Thomas
--
View this message in context:
http://n2.nabble.com/PartLoader-and-Class-getByName-tp3668151p3684114.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