Klaus-F. Kaal | 5 Oct 14:24
Favicon

URLs in qx

Hi,

first of all: it is really a pleasure to working with qooxdoo. The developer are doing a great job!

I am trying to create a application, where all ressources are located on the server in the same directory (qooxdoo and rpc server). I try to set URLs as well for the rpc server as for some pages, which I show in an iFrame. Obviously, both functions need absolute addresses like "http://localhost/myapp...".

Is there a variable which I can use to stuff these addresses with the base bath?

Thanks for your help

Klaus
--
 
Klaus-F. Kaal
Geschäftsführer
 
TIMOlogic GmbH
Singener Str. 42d
D-78256 Steisslingen
 
phone +49 7738 97096
fax +49 7738 97094
 
Handelsregister: Singen HRB 1795

-------------------------------------------------------------------------
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
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Philippe Poulard | 6 Oct 09:19

Re: URLs in qx

Klaus-F. Kaal a écrit :
> Hi,
> 
> first of all: it is really a pleasure to working with qooxdoo. The 
> developer are doing a great job!
> 
> I am trying to create a application, where all ressources are located on 
> the server in the same directory (qooxdoo and rpc server). I try to set 
> URLs as well for the rpc server as for some pages, which I show in an 
> iFrame. Obviously, both functions need absolute addresses like 
> "http://localhost/myapp...".

hi,

did you try relative urls ?
it works with qx.io.Request

--

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !

-------------------------------------------------------------------------
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=/
thron7 | 7 Oct 17:25

Re: URLs in qx

Hi Klaus,

> I am trying to create a application, where all ressources are located on the 
> server in the same directory (qooxdoo and rpc server). I try to set URLs as well 
> for the rpc server as for some pages, which I show in an iFrame. Obviously, both 
> functions need absolute addresses like "http://localhost/myapp...".
>
> Is there a variable which I can use to stuff these addresses with the base bath?
>
>   

I'm not sure I fully get what you are trying to achieve. For one thing, 
are you talking about your production environment? If so, you wouldn't 
put a qooxdoo SDK on the server, but rather create a 'build' version of 
your app which includes all necessary framework classes. This build 
directory tree is self-contained and can then be safely copied to your 
web server, without worrying about URIs outside the tree.

Within your application, relative paths are strongly recommended, and 
the qooxdoo generator will generate corresponding URIs. In the 'source' 
version, these URIs reference parts of your file system outside the 
source directory tree (This applies to the qooxdoo framework as well as 
to other qooxdoo projects you might use). If you want to access this 
source version of your app, you have to make sure to choose the 
DocumentRoot or Aliases in your web server as such that all relative 
paths represent valid URIs. A simple way to achieve this is to configure 
the DocumentRoot or one Alias to point to a directory that is above (in 
the filesystem hierarchy) your app and all involved libraries/frameworks.

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=/

Gmane