Fabian Jakobs wrote:
> 
> I would try it from the outside of the iframe. Just load a blank html 
> file into the iframe. Then you can add a root widget to the iframe
> 
> var iframeRoot = new 
> qx.ui.root.Application(qx.bom.Iframe.getDocument(iframeElement));
> 
> than place your widgets into the the iframe root widget. Still I'm not 
> sure how well this will work. I'd be very interested in your results.
> 

I didn't try the Iframe, but experimented with the native window. This is
how far I got:

Loag this in the playground (current trunk):

var win = new qx.bom.Window.open();
win.document.write("<html><body /></html>");
win.document.close();

var root = new qx.ui.root.Application(win.document);

// Create a button
var button1 = new qx.ui.form.Button("First Button",
"icon/22/apps/internet-web-browser.png");

// Add button to document at fixed coordinates
root.add(button1,
{
  left : 100,
  top  : 50
});

// Add an event listener
button1.addListener("execute", function(e) {
  alert("Hello World!");
});

The button is correctly displayed, but the event handler is not called. I
guess the event handling is the real issue - there was a mesage on the list
a long time ago on this.

Best,

Christian



-- 
View this message in context: 
http://n2.nabble.com/Native-Window-again-tp3723200p3731811.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to