Re: Calling qx.io2.ScriptLoader.load() multiple times

View: New views
4 Messages — Rating Filter:   Alert me  

Re: Calling qx.io2.ScriptLoader.load() multiple times

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm answering this top-level, as it is indeed a different question:

Fritz Zaucker wrote:
> A related (?) question:
>
> I tried to call qx.io2.ScriptLoader.Load() with two different arguments
> directly after each other. I got an error for the second call that there was
> still another load request pending.
>  

You are aware that these are asynchronous calls, are you?!

> I can of course make the second call from within the handler of the first,
> but this get's a bit cumbersome when loading "many" files. Wouldn't that be
> better handled by the Loader itself?
>  

I suggest using the qx.io.remote.Request instead, you might have to
fiddle a bit with Request properties to get the Script transport that
you desire. But then it uses an internal request queue which I suspect
will handle the request sequencing nicely :).

T.

> Cheers,
> Fritz
>  




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Calling qx.io2.ScriptLoader.load() multiple times

by Fritz Zaucker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2 Nov 2009, thron7 wrote:

> I'm answering this top-level, as it is indeed a different question:

Ok.

> Fritz Zaucker wrote:
>> A related (?) question:
>>
>> I tried to call qx.io2.ScriptLoader.Load() with two different arguments
>> directly after each other. I got an error for the second call that there
>> was still another load request pending.
>
> You are aware that these are asynchronous calls, are you?!

I am ...

>> I can of course make the second call from within the handler of the
>> first, but this get's a bit cumbersome when loading "many" files.
>> Wouldn't that be better handled by the Loader itself?

... that's why there is a handler, I guess ...

> I suggest using the qx.io.remote.Request instead, you might have to
> fiddle a bit with Request properties to get the Script transport that
> you desire. But then it uses an internal request queue which I suspect
> will handle the request sequencing nicely :).

Would this then also "embed" the script content as ScriptLoader does? I
wanted to use ScriptLoader() to load a none-qooxdoo JS-library for use from
within Qooxdoo.

Thanks and cheers,
Fritz

--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Calling qx.io2.ScriptLoader.load() multiple times

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Would this then also "embed" the script content as ScriptLoader does? I
> wanted to use ScriptLoader() to load a none-qooxdoo JS-library for use from
> within Qooxdoo.
>  

I would think so. Just make sure you use the Script transport.

T.

>  

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Bug with Label in Chrome?

by Fritz Zaucker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try this

http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22var%2520box%2520%253D%2520new%2520qx.ui.container.Composite%28new%2520qx.ui.layout.HBox%280%29%29%253B%250Abox.add%28new%2520qx.ui.basic.Label%28%27This%27%29%29%253B%250Abox.add%28new%2520qx.ui.basic.Label%28%27%2520is%2520a%2520%27%29%29%253B%250Abox.add%28new%2520qx.ui.basic.Label%28%27Test.%27%29%29%253B%250Athis.getRoot%28%29.add%28box%29%253B%250A%250A%250A%22%7D

in playground.

Firefox:        the spaces between the words are displayed correctly.

Chrome (Linux): the spaces at the beginning and end of the second label
                 "disappear".

Cheers,
Fritz

--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel