thanks for your comments. I still wonder, why it works on version 1.0 properly but not on version 1.0.1. I guess qooxdoo loads the script files in async-mode, might that be?
Best regards, Gerrit -- Gerrit Garbereder B.Sc. Mathematisch-technischer Softwareentwickler RWTH Aachen University, Center for Computing and Communication Rechen- und Kommunikationszentrum Virtual Reality Group Dienstgebäude Kopernikusstraße 6, 52074 Aachen (Germany) Raum 108 Tel.: +49 (0) 241 80-29731 mailto:[email protected] URL: www.vr.rwth-aachen.de On Mon, May 9, 2011 at 10:34, thron7 <[email protected]> wrote: > > > On 05/08/2011 11:04 AM, Gerrit Garbereder wrote: >> Hey folks, >> >> reffering to my last post I want to reopen it. I got the Version 0.8.3 >> and 1.0 working on my server properly. But now I would like to migrate >> up to 1.4. My next step was to do the migration to 1.0.1 and I >> detected the same error as before changeing the server config. So the >> situation is: >> >> There is a java script file which gets included via html (<script >> type="text/javascript" src="script/urls.js"></script>) and has the >> following content: >> >> <?php >> session_start(); >> if (isset($_SESSION['cName'])) { >> echo "user = \"".$_SESSION[cName]."\";"; >> echo "status = \"".$_SESSION[iStatus]."\";"; >> } else { >> echo "user = \"".$none."\";"; >> } >> ?> >> >> urlString = "../../"; >> >> urlSaveString = urlString + "projects/saveProject.php"; >> urlUpdateString = urlString + "projects/updateProject.php"; >> >> In Version 0.8.3 and 1.0 the stuff is parsed first through php and >> than through javascript. This is done somehow automagic by qooxdoo. > > Not at all. qooxdoo has nothing to do with this. You're including the > script in the html, so its requested directly by the browser. The server > side needs to parse and replace the PHP part (I've never seen <?php ... > ?> markup in a JS file. .js is code - markup belongs to HTML. But that's > really not my area of expertise). You need, though, make the server pass > your .js file to the PHP plugin, to parse and evaluate it (check your > config). > >> >> Can you help me to migrate my application? > > As for qooxdoo code, yes. > >> >> Btw. why are all the files in source/script deleted on migration? >> Whats the place where to put my own script files? > > source/script is a volatile directory, which is emptied on e.g. > "generate.py clean" or "distclean". Non-qooxdoo JS files you want to use > in your app should go into the source/resource/<app_name_space> path, > and be loaded from there. > > T. > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
