thron7 schrieb:
> Florian Giesen wrote:
>   
>> Hello,
>>
>> I have a similar problem. I am using Apache on a Windows system for 
>> development. Up to now I did not get it work (neither source nor build), to 
>> change the default paths. The best way to explain my problem is an example 
>> of the desired folder structure:
>>
>> /somedir/index.html (with the qooxdoo app)
>> /somedir/myQxApp/generate.py etc...
>> /somedir/myQxApp/source/
>> /somedir/myQxApp/build/
>> ...
>> /qx_sdk/framework/
>>
>> When I load the index.html over http nothing happens (I used the demo from 
>> the create-application.py script).
>> I played with the config.json file but all I get is a white page, i.e. the 
>> script is not loaded. Also firebug tells me nothing.
>>
>>   
>>     
>
>   
Just one additional hint. To check which JavaScript files are loaded and 
whether they are loaded correctly I often use the "JSView" plugin for 
firefox.

Best Fabian


> Ok, I jump right in with a couple of remarks:
>
> * The good thing is when you are browsing the application over a web 
> server you get a clear indication of all files that could not be found 
> (that's sometimes not so clear when you go over file://...). If you look 
> in the "Net" tab of firebug, irretrievable files are highlighted (red, 
> IIRC). - Check those.
>
> * If you surf to /somedir/index.html (and that's all there is in the 
> directory), I'm not surprised nothing happens. If you look into 
> index.html it tries to load a <script> with something like 
> src=scrip/myqxapp.js. If I interpret your file structure correctly 
> that's not there.
>
> * Rather, you should surf to /somedir/myQxApp/source/index.html. That's 
> were all the files live, and all the uri's are correct (supposedly). 
> There should be a 'script', 'resource' and 'translation' subdirectory in 
> /somedir/myQxApp/source, with the respective contents.
>
> * The same applies to /somedir/myQxApp/build. Once you ran a 
> 'generate.py build', *this* one is self-contained so you can copy it 
> around - but always the entire build/* subtree. You *cannot* copy around 
> /somedir/myQxApp/source without breaking uri's!
>
> * To make especially the source version work over Apache, your desired 
> folder structure has to be *entirely* under a document root of the web 
> server! Otherwise, the relative uri's of the source version will point 
> outside the web server's document tree and will never be delivered. In 
> your example, if the common root "/" of your folder structure maps to 
> http://localhost/ or http://localhost/some/path/, so that 
> http://localhost/some/path/somedir/myQxApp/source/index.html is a valid 
> url *and* http://localhost/some/path/qx_sdk/framework/ is, *then* 
> everything should work :).
>
> * Ah, and unless this wasn't clear by now: 'source' only works after 
> running 'generate.py source', and 'build' only works after running 
> 'generate.py build' :).
>
> HTH,
> Thomas
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to