Try loginWindow.open();

See also http://demo.qooxdoo.org/current/playground/#Window

Cheers,
Fritz

On Tue, 20 Oct 2009, Max Tappenden wrote:

> Hi there,
>
> I'm just getting started with Qooxdoo. I've tried to simply create a window 
> in my application using the information on the web site, but I'm just getting 
> a blank screen. Some pointers would be greatly appreciated.
>
> Here's my code
>
> qx.Class.define("clouds.Application", {
>       extend : qx.application.Standalone,
>       members : {
>               main : function() {
>                       this.base(arguments);
>                       if (qx.core.Variant.isSet("qx.debug", "on")) {
>                               qx.log.appender.Native;
>                               qx.log.appender.Console;
>                       }
>                       var loginWindow = new qx.ui.window.Window('Login');
>                       loginWindow.setLayout(new qx.ui.layout.VBox(10));
>                       loginWindow.setModal(true);
>                       var doc = this.getRoot();
>                       doc.add(loginWindow);
>                       var loginMessage = "Please login to Clouds";
>                       loginWindow.add(loginMessage);
>               }
>       }
> });
>
> In Safari, I get the following messages in the JavaScript console.
>
> 000727 Mixin "qx.core.MAssert" is already included into Class 
> "qx.dev.unit.TestCase" by class: qx.core.Object!
> file:///Applications/Qooxdoo/framework/source/class/qx/log/appender/Native.js:91002072
>  
> qx.core.Init: Load runtime: 2072ms
> file:///Applications/Qooxdoo/framework/source/class/qx/ui/core/Widget.js:1869TypeError:
>  
> Result of expression 'child.getLayoutParent' [undefined] is not a function.
>
> Best regards
> Max Tappenden

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to