Hi!

I'm trying to load a local json file, through a store, for tests, but it
does not work.

As I'm in dev. phase, I access to my app through a local uri:

    file:///home/fma/Perso/develop/javascript/qooxdoo/pKNyXui/source/index.html

which is OK for qooxdoo: all its resources are loaded
(from /opt/qooxdoo/...).

I found that it is not possible to load a local file, without modifying
the browser config, what I want to avoid. So, I'm just using python to
server local files:

$ cd /home/fma/Perso/develop/javascript/qooxdoo/pKNyXui
$ python -m "SimpleHttpServer"

This way, I have a real web server, binded to port 8000, serving all files
from current location (/home/fma/Perso/develop/javascript/qooxdoo/pKNyXui).

But I get this error:

XMLHttpRequest cannot load
http://localhost:8000/source/resource/pknyxui/datapoints.json. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'null' is therefore not allowed access.

Ok, so, I tried to use the server uri to access to my app :

    http://localhost:8000/source/index.html

It seems (I may have another problem, but one at a time!) now that qooxdoo
is unable to load its resources:


http://localhost:8000/opt/qooxdoo-4.0.1-sdk/framework/source/resource/qx/decoration/Modern/window-captionbar-buttons-combined.png
404 (File not found)
http://localhost:8000/opt/qooxdoo-4.0.1-sdk/framework/source/resource/qx/decoration/Modern/table-combined.png
404 (File not found)

So, what is the best practice for such situation?

-- 
    Frédéric

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to