Pirlo wrote:
> Thanks Thomas. I managed to changes some things o Applications. But and now I
> think I´m getting different things. But for example I would like to use JSP
> or PHP connecting to a data base.  I have got to load a page in an iframe.
> But then I would like to do events in the page loaded and see efects in the
> main page... do you know what I mean?
>   

Well, that's a big jump, from skeleton "Hello World" to backend database 
connections, iframes and inter-frame communication. All of this is 
doable, but there are a couple of steps to cover in between. You don't 
expect to get a working solution in 30 minutes and with 20 lines of 
code, do you?! Here are a few pointers.

First, you should ask yourself if an iframe is really necessary. 
Inter-frame communication is always a bit more tedious than intra-frame. 
Backend communication can be done nicely with Ajax and the results can 
be applied to any part of your frontend application in the same frame. 
If you receive HTML, you can use qx.ui.embed.HtmlEmbed to display it in 
your GUI.

For backend communication, start reading up the API doc for remote IO 
(http://demo.qooxdoo.org/current/apiviewer/#qx.io.remote), which offers 
IO classes on various levels; qx.io.remote.Request is the class you want 
to look at.

If you can't avoid the iframe you can look at one of our standard 
applications that use the same approach, e.g. the TestRunner 
(http://demo.qooxdoo.org/current/testrunner/). The 
testrunner.runner.TestRunner class has the code that handles the iframe 
and communication with it (see the "construct" member and the 
"ehIframeOnLoad" method which handles the onload event of the iframe, 
but be warned that this code is not meant to be educational).

Maybe others with more experience in this area can comment.

Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to