On 08/23/2010 10:03 PM, Andrey Kovalev wrote:
> 
> Hi, all.
> I could add a snippet decode-uris-plug to decodeUris. But I found that if
> application is inline (qx.$$loader = {...,bootIsInline : true,...)
> decodeUris isn't called by loader. In that case how can I control prefix to
> my resources?

decodeUris is only called for loading *scripts*, not resources (don't
ask why). So this doesn't help you at all. And for an application that
only consists of the boot part, which is already included with the
loader (aka "bootIsInline"), decodeUris isn't called at all because,
well, everything is already loaded, and no script has to be loaded
additionally.

> Currently I added this code into my config.json:
>     "jobs": {
>         "build" : {
>             "compile-options" : {
>                 "code": { "decode-uris-plug" :
> "${ROOT}/source/class/test/decodeUris.js" },
>                 "uris" :
>                 {
>                     "resource" : "${APP.CONTEXT}/resource"
>                 }
>             }
>         }
>     }

Ok, so you found the compile-options/uris/resource config key, that's
good. That is the canonical place to configure what you want, but, yes,
it's static.

> But can I dynamically add this context? Like it's possible to define
> window.qxsettings before application is loaded.

Yes, you can define window.qxsettings before the application is loaded,
e.g. in the loading index.html, but what do you want to use it for? In
order to achieve what you want, changing the place resources are loaded
from, you would need to change the qxlibraries global that holds root
URLs of involved libraries. But there is currently no API to do that, so
maybe you want to add a bugzilla issue for that. If you do the change by
hand, you risk running into errors when we change internals, but that
should do the trick.

T.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to