Hi John,

You can move your GUI loading code into a function/listener that is 
called only after the user logs in.

For example, by doing something like this:



   members :
   {
     main : function()
     {
       var form = new LoginForm;
       form.addListener("success", this.__buildGUI, this);
       form.show();
       }
     },

     __buildGUI : function() {
       //build the rest of your GUI
     }
   }
}



Regards,
Marc


On 08/31/2011 10:52 PM, John de la Garza wrote:
> I am trying to creating a login page.  I want to wait on the app
> building the GUI until after they have logged in.  In my first attempt
> I created a login form.  I now realize the form is async and my app
> can't wait.
>
> I'm thinking  the solution is to have the succes login event load the
> gui.  I assume that I can't have a  dialog box that blocks execution
> of code till the correct auth info is entered.
>
> any ideas on this?
>
> If there was a way to say open a dialog box and stop execution  until
> I get the answer I would do that.  I'm new to event driven
> programming.
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to