Hi,

On Friday March 5 2010 16:36:41 mckwil wrote:
> I'm a bit confused about your solutions:
>    "either wrap the google code in 
>    your popup window inside a small qooxdoo app or use a qooxdoo window
> instance 
>    and embed the google code there inside an iframe"
It wasn't my intention to confuse you :)

> If I was to load a qooxdoo window and embed the google code there, then I
> would have no way to position the popup window at a marker's position on
> the google map precisely, which doesn't really solve this problem.
So a qooxdoo window (qx.ui.window.Window) is no alternative here, right?

> If I was to wrap google code in the popup window inside a small qooxdoo
> app, then
> 1) Would I need to create a separate qooxdoo app for each popup window that
> I make?
Yes, for every new window (=document) you need to create an own qooxdoo app.

> 2) How would separate qooxdoo app communicate with my "main" qooxdoo app?
Since the "main" app is opening the popup you can communicate through 
"window.opener" from the popup.

> 3) Not exactly sure how to achieve this on an implementation level...??
--snip-
// inside the popup
var mainApp = window.opener.qx.core.Init.getApplication();
mainApp.sendMessage("doSomething");
--snip--

> Is there other way around this problem? 
If you want to avoid two separate applications you need to find a way that the 
google map is loaded within the same document.

> Maybe I am a bit confused but... can I supply some qooxdoo / javascript
> code in a HTML string and use that code to talk to my "main" qooxdoo app?
It's better if you use the communication layer to just talk between the two 
apps and separate any UI code from it. There shouldn't be any direct 
connection between the widgets in the main app and the popup app.

cheers,
  Alex

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to