Hello Jonas,
dwaddwa fwfefwewe wrote:
> Hallo Alexander,
>
> I use a complete build width all qooxdoo widgets. So I never run the python
> script again.
> The folder structure of my program is like that:
> - bin/ (the scripts I open with the webbrowser are paced in many different
> subfolders e.g. bin/admin, bin/wysiwyg, bin/page, ...)
> - pub/qx/ (here is the qx.js placed which I use in the programs in bin/...,
> also there are the qooxdoo-Resources (icons,decorator,,...))
>
> At the moment I only use qooxdoo in the program bin/admin/frame.php. And then
> I have to copy the qooxdoo-Resources to bin/admin/qx/ because I don't know
> how to set the resource-path _dynamically_ .
> Later I'll use qooxdoo in bin/page/frame.php and other programs, but I use in
> every program the same qx.js file (pub/qx/qx.js) and I don't want to copy the
> qooxdoo-resources to several folders.
>
> Maybe you have a idea to solve that problem.
No simple one :(
Every qooxdoo build is including its resources with a relative path to
the application root (=the HTML/PHP/whatever page which includes the
scripts). In your case these are the different PHP pages and that is the
reason why you end up with different URIs to the resources.
So there are basically three possible solutions for this:
* generate your own build and set a different application root
->
http://qooxdoo.org/documentation/0.8/setting_a_different_application_root
At the moment this is a bit complicated, but it will get easier with
the upcoming 0.8.1 release
* set up a symbolic link for each sub-section which points to the
qooxdoo resources
* the "ResourceManager" class is getting his infos about the resources
by accessing a map which is defined at load time.
--snip--
qxlibraries["qx"]={"resourceUri":"./resource/"};
--snip--
The problem with changing this one is that you have to change it
*before* your application starts.
Let me know, if this is getting you further down the road.
cheers,
Alex
>> Hello Jonas,
>>
>> dwaddwa fwfefwewe wrote:
>>> Hello.
>>> I would like to change the resourceUri in the script. In the documentation
>>> there stands that this is possible by using the Class qx.core.Setting. But
>>> when I write
>>> alert (qx.core.Setting.get("resourceUri"));
>>> to first find out that the resourceUri currently is,
>>> I get the error: Setting "resourceUri" is not defined.
>> The "resourceUri" is not a setting anymore. The "resourceUri" is only
>> used by the "qx.util.ResourceManager" to resolve URI's.
>>
>>> When I write
>>> qx.core.Setting.define("resourceUri", "../qx/");
>>> or
>>> qx.core.Setting.define("qx.resourceUri", "../qx/");
>>> or
>>> qx.core.Setting.define("custom.resourceUri", "../qx/");
>>>
>>> the programm doesn't find my icons,decorations,...
>>>
>>> How can I set the resourceUri ?
>> The "resourceUri" is set by putting together the paths of your
>> application root, the resource part (set in your "Manifest.json" file
>> and the URI part to the resource itself.
>>
>> For these parts the framework does set defaults which are working out of
>> the box.
>>
>> Could you describe what your setup (e.g. did you change any of your
>> parameters in your "config.json" or "Manifest.json") and what you are
>> about to achieve? With this infos we can surely work out a solution.
>>
>> cheers,
>> Alex
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel