Hi Thorsten,

the "canonical" way to manipulate the resource path at runtime is to 
build your application with a generator job that sets the 
"decode-uris-plug" key[1]. The value is the path of a file that contains 
a snippet of JavaScript code which will be merged into the loader script 
at build time. The code will have access to the variable "euri" which is 
the (computed) resource uri. You can set this to the desired uri.

If you're just looking for a better place to redefine the qx.$$libraries 
map, I guess you could do that in a "defer" section[2] in your main 
application class.


Regards,
Daniel

[1]http://qooxdoo.org/documentation/0.8/generator_config_ref#compile-options
[2]http://qooxdoo.org/documentation/1.0/oo_feature_summary#immediate_access_to_previously_defined_members

Thorsten Klingen schrieb:
> Hi,
> 
> is it possible to set the resource path at runtime with qooxdoo 1.0+?
> 
> With qooxdoo 0.7 you could set the resource path in the html-file with:
> <script type="text/javascript">
> qxsettings = {"qx.resourceUri" : "path_to_resource_dir"};
> </script>
> 
> Is there anything comparable in the newest qooxdoo version?
> 
> I did the following AFTER my inline-application is loaded and it worked, 
> but it's not the nicest way.
> <script type="text/javascript">
> qx.$$libraries.qx.resourceUri = "path_to_resource_dir";
> </script>
> 
> Thanks in advance
> Thorsten
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to