Hi Guilherme,

thanks for your reply.
The problem is, that I don’t know the plugins when writing my application.
They should be inserted and loaded dynamically at the “customer” and can be
provided by others, who I don’t know.

What I want concrete:

My application:
Something like for example:

function(e) {
LoadPlugin(“testPlugin.js”);
}


The Plugin (testplugin.js):

Var btn1 = new qx.ui.form.button(“This is a button”);
getRoot().add(btn1);

So the LoadPlugin method should load the testplugin.js and execute it.
My question: Is this possible with the ScriptLoader or some other way? Or
the eval() function of javascript?
And is there any way to include *all* qx-libraries, so that no dependency
problem occurs?

Thanks for your help!

Best regards,
Chris

Von: Guilherme Aiolfi [mailto:[email protected]] 
Gesendet: Samstag, 2. Januar 2010 20:47
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] Load class and dependency on runtime

Hi Chris.

We are in the middle of a holiday and it's normal people are not checking
their e-mails. So be a little patience.

About your problem: you shouldn't be dealing with dependencies by yourself.
That's why the tool chain is all about.

If you want to load some classes dynamically the best you can do is to slice
you code in "parts" and load it on demand. Loading it class by class is not
the right way to go. Because you usually need a lot of classes to perform
simple tasks.

More about the concept: http://qooxdoo.org/documentation/1.0/parts_overview

And how to use: http://qooxdoo.org/documentation/1.0/parts_using


On Sat, Jan 2, 2010 at 3:21 PM, Chris R.
<[email protected]> wrote:
Hi everybody,
 
i just posted yesterday, but no response.
My problem is, that I just want to load dynamically a piece of code and run
it (for example to create a window).
It should work like a plugin architecture.
 
Can I copy a javascript class to my applications directory and load it at
runtime, without the knowledge about dependencies?
I read about the getByName-method but do not know, if it’s the right way for
me, because I can’t check, if every dependency is available.
Is it possible to load every possible dependency via the #use command?
 
And how could I realize such an plugin architecture?
 
Thanks in advance! I’m new to qooxdoo and everything is very confusing at
the moment.
 
Please help!!
 
Best regards,
Chris

----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to