Fritz:
thanks, that would do the downloading, if you wrap the instantiation
of the cometd object into a series of nested callbacks which load the
required libraries. However, that is very hacky and unconvenient for
the user. It would be better if I could tell the generator to inlcude
these files into the script loader or the generated package. Since the
script files do not conform to the qooxdoo syntax, I cannot do that
through "#require". I don't know the generator options that well,
maybe there is a way of achieving this - this question goes to
generator experts ...
Thanks,
Christian
Fritz Zaucker-2 wrote:
>
> On Sun, 4 Oct 2009, panyasan wrote:
>
>> Also, I haven't yet found a good was of including the required libraries
>> at runtime - is there a way of telling the generator to load them in the
>> script loader?
>
> Here is the answer I got recently on a similar question:
>
> qx.io2.ScriptLoader.load("your external js script", function() {
> // script is loaded
> }, this);
>
> Cheers,
> Fritz
>
> --
> Oetiker+Partner AG tel: +41 62 775 99 03 (direct)
> Fritz Zaucker +41 62 775 99 00 (switch board)
> Aarweg 15 +41 79 675 06 30 (mobile)
> CH-4600 Olten fax: +41 62 775 99 05
> Schweiz web: www.oetiker.ch
>
> ------------------------------------------------------------------------------
> 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
>
>
--
View this message in context:
http://n2.nabble.com/New-contribution-qooxdoo-cometd-wrapper-tp3764689p3769319.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