Your code is not that wrong. But the display property is not identical 
to its CSS counterpart. It is boolean. So you can simply use 
{display:false} instead.

Alternatively you can use main.hide().

Hope this helps.

Sebastian



Tobias Koller (GERMO GmbH) schrieb:
> Hello,
> 
>  
> 
> I made a loginscreen and when I push the login-Button I want to hide 
> this Login-Site and load another Site with some test-content.
> 
> How can I handle this?
> 
> I tried something like this:
> 
>  
> 
> btnLogin.addEventListener("execute",*function*(){
> 
>       main.set({display:“none“});
> 
>  
> 
> });
> 
>  
> 
> But it doesn’t work.
> 
>  
> 
> Can someone help me?
> 
>  
> 
> Thanks.
> 
>  
> 
>  
> 
> Here is some of my code:
> 
>  
> 
> qx.Proto.main = *function*(e)
> 
> {
> 
>       //ImagePfad wird gesetzt
> 
>       qx.manager.object.AliasManager.getInstance().add("imagePath", 
> "../images");
> 
>      
> 
>       //FrameWork (Header und Main)
> 
>       *var* frameWork = *new* qx.ui.layout.VerticalBoxLayout;
> 
>       frameWork.setPadding(5);
> 
>       frameWork.setSpacing(5);
> 
>       frameWork.set({width:"100%", height:"100%"});
> 
>      
> 
>       // create button
> 
>       *var* doc = qx.ui.core.ClientDocument.getInstance();
> 
>       doc.set({backgroundColor:"#FFFFFF", width:"100%", height:"100%"});
> 
>      
> 
>       *var* login = *false*;//just a test
> 
>      
> 
>      
> 
>       *if*(login){
> 
>             *this*.workScreen(doc,frameWork);
> 
>       }
> 
>       *else*{
> 
>             *this*.loginScreen(doc,frameWork);
> 
>       }
> 
> };
> 
>  
> 
> qx.Proto.loginScreen = *function*(doc,frameWork)
> 
> {
> 
>       //hintergrund Main
> 
>       *var* main = *new* qx.ui.basic.Atom();
> 
>       *var* loginArea = *new* qx.ui.basic.Atom();
> 
>       *var* br = *new* qx.renderer.border.Border(1, "solid", 
> "#91A5BD");//Rand
> 
>       *var* titleBr = *new* qx.renderer.border.Border(1, "solid", 
> "#91A5BD");//Rand
> 
>       *var* footerBr = *new* qx.renderer.border.Border(1, "solid", 
> "#91A5BD");//Rand
> 
>       *var* vertTitleMain = *new* qx.ui.layout.VerticalBoxLayout; 
> //Kopfzeile und Hauptteil
> 
>       *var* title = *new* qx.ui.basic.Atom("Login");
> 
>       *var* mainArea = *new* qx.ui.basic.Atom();
> 
>       *var* footer = *new* qx.ui.basic.Atom();
> 
>      
> 
>       //Login und Passwort
> 
>      
> 
>       *var* loginLbl = *new* qx.ui.basic.Label("Benutzer:");
> 
>       *var* passwdLbl = *new* qx.ui.basic.Label("Passwort:");
> 
>       *var* loginText = *new* qx.ui.form.TextField();
> 
>       *var* passwdText = *new* qx.ui.form.PasswordField();
> 
>       *var* gridLogin = *new* qx.ui.layout.GridLayout;
> 
>      
> 
>       //Gridlayout
> 
>       .
> 
> ..
> 
> ...
> 
>  
> 
> *var* btnLogin = *new* qx.ui.form.Button("login");
> 
>       btnLogin.set({width:100});
> 
>      
> 
>       btnLogin.addEventListener("execute",*function*(){
> 
>             alert("testLogin");
> 
>             main.set({});
> 
>  
> 
>       });
> 
> .
> 
> ..
> 
> ...
> 
>  
> 
> }
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to