Hey,

In the demo that Fritz linked, you can see that they're attaching to the root object also.

Best regards
Max Tappenden

On 20 Oct 2009, at 22:18, Gene Amtower wrote:

Max,

You didn't mention if you are still getting the errors in Safari.

One thing that I noticed, and I'm not sure if it's a problem or not, is that you are attaching the Window object directly to the root object.

Since the error you reported mentions being unable to get the layoutParent of the Child, this makes me wonder if you are allowed to attach a Window object this way. You may need to create a "Container" on the root, then set the Layout on the container appropriately, then attach the Window to the Container. I believe the Window's parent object needs to have a Layout option set, and this is why you're getting the error message.

HTH,

   Gene


On Tue, 2009-10-20 at 21:57 +0100, Max Tappenden wrote:

Thanks, missed that. Just added that line, though, and still no go. I
can't figure out what I'm missing from the example that should be
causing the error and blank display.

Best regards
Max Tappenden

On 20 Oct 2009, at 21:48, Fritz Zaucker wrote:

> 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


------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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