Hi dcipher,

what's your generated "resourceUri"? It's the base URI for the resource 
retrieval which is concatenated with the resource id you are using 
within your code. These are mine (you also see the sourceUri for the JS 
class retrieval you mentioned):

source version:
===============
source/script/ml_7jan.js:
12:var libinfo = 
{"__out__":{"sourceUri":"script"},"dialog":{"resourceUri":"../../dialoglocal/master/source/resource","sourceUri":"../../dialog/master/source/class"},"ml_7jan":{"resourceUri":"../source/resource","sourceUri":"../source/class"},"qx":{"resourceUri":"../../qooxdoo.git/framework/source/resource"}};

Within code:
* @asset(ml_7jan/*)
* @asset(dialog/logo.gif)

On the browser console:
$ qx.util.ResourceManager.getInstance().toUri("dialog/logo.gif");
 > "../../dialog/master/source/resource/dialog/logo.gif"

$ qx.util.ResourceManager.getInstance().toUri("ml_7jan/test.png");
 > "../source/resource/ml_7jan/test.png"


build version:
==============
build/script/ml_7jan.js:
12:var libinfo = 
{"__out__":{"sourceUri":"script"},"dialog":{"resourceUri":"resource","sourceUri":"script"},"ml_7jan":{"resourceUri":"resource","sourceUri":"script"},"qx":{"resourceUri":"resource","sourceUri":"script"}};

Within code:
* @asset(ml_7jan/*)
* @asset(dialog/logo.gif)

On the browser console:
$ qx.util.ResourceManager.getInstance().toUri("dialog/logo.gif");
 > "resource/dialog/logo.gif"

$ qx.util.ResourceManager.getInstance().toUri("ml_7jan/test.png");
 > "resource/ml_7jan/test.png"


When I then browse to ...

http://localhost/ml_7jan/source/../../dialog/master/source/resource/dialog/logo.gif

... I see the image. And that's how the resolution is done
by the framework.

My file paths:
/my/path/to/workspace/dialog (contrib I'm using as example)
/my/path/to/workspace/ml_7jan (main app)

and "workspace" is my DocumentRoot.

By the way: You would host the build version, where everything is 
self-contained, and the resources are all copied in one place - how
is the build version working for you concerning the images?

Regards
Richard

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to