Hallo Tobias, 

there are two reasons why i did not use the backend

1) I did not get the php backend up and running now (is there any *really 
simple* how-to available?)

2) I do not think that it would fit my needs: The mentioned php-schript is 
called with the $p_id-Variable (project-id in this case) as an url-param from 
another script / page / link, so how can i retrieve this variable from the 
backend which i would call from the qooxdoo-class after the script which 
instanciates the qooxdoo-class was already loaded? How should the php-backend 
now about the url-param from the first call? Or do i just miss the point?

Thanks again for your help!

cu,
-- 
Andreas Tepper
Softwareentwicklung

Animationsfabrik GmbH
Donnerstrasse 20
D-22763 Hamburg

Tel:    +49 40 398415-10
Fax:    +49 40 398415-32
E-Mail: [EMAIL PROTECTED]
Web:    www.animationsfabrik.de  

Amtsgericht Hamburg
HRB 75488
Geschäftsführer: Jörn Radel
Sitz der Gesellschaft: Hamburg
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Koller 
(GERMO GmbH)
Sent: Wednesday, December 05, 2007 11:36 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Passing variables from PHP to qooxdoo

Hi andreas,

why don't you just use the php-backend of qooxdoo?
You can use it, to get anything you want from your php-file to your 
qooxdoo-app...also your global-vars.
Maybe you can call the backend at the start of your af.js....

Tobias


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Andreas Tepper
Gesendet: Mittwoch, 5. Dezember 2007 11:24
An: [email protected]
Betreff: [qooxdoo-devel] Passing variables from PHP to qooxdoo

Hallo,

first a short introduction of myself, because this is my first post on this 
list: My name is Andreas, i am working as an application developer for a 
company which mainly does 2D and 3D computer animations, visual effects and 
motion capturing for movies, tv and commercials. Mostly i work with MS .Net / 
C#, but we have a huge, PHP-based intranet application for project management 
up and running for a couple of years where we now want to use qooxdoo to build 
a better ui.

Now the question: How do i pass variables from my php code to a qooxdoo class? 
The qooxdoo app is embedded in php like this:

function PrintMain()
{
        global $BASENAME_PHP_SELF;
        global $user_stylesheet;
        global $p_id;

        echo("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 
Transitional//EN\">\n");
        echo("<html>\n");
        echo("<head>\n");
        echo("<title>Kostenreport</title>\n");
        echo("<script type=\"text/javascript\" 
src=\"script/af.js\"></script>\n");
        echo("</head>\n");
        echo("<body>\n");
        echo("</body>\n");
        echo("</html>\n");
}

As you can see, the whole html is produced by php, but it may be possible to 
change this. In this special case i would have to pass the global variable 
$p_id to the qooxdoo class.

Thnaks for your help!

Kind regards,
-- 
Andreas Tepper
Softwareentwicklung

Animationsfabrik GmbH
Donnerstrasse 20
D-22763 Hamburg

Tel:    +49 40 398415-10
Fax:    +49 40 398415-32
E-Mail: [EMAIL PROTECTED]
Web:    www.animationsfabrik.de  

Amtsgericht Hamburg
HRB 75488
Geschäftsführer: Jörn Radel
Sitz der Gesellschaft: Hamburg

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to