Hi Skar,

I used this code for my application with a separate login application.

      buttonLoginOk.addListener("execute", function (e) {        
        var wLogin = this.__wLogin;
        var user = champLogin.getValue();
        var password = champPassword.getValue();
                   
        wLogin.setShowStatusbar(false);
        
        var result = this.SPOT2U_RPC.callSync("connexion", {login_utilis : 
user, passwd_utilis : password});

        if (result.authentification) {
          // Redirection vers la page client
          wLogin.close();
          window.open("/client/","_self");
        }
        else if (result.blocked) {
          // Redirection vers la page d'accueil
          wLogin.close();
          window.open("/index.php","_self");
        }
        else {
          var contact = "";
          if (result.nomadmin != "" || result.prenomadmin != "") {
            contact = "<br>( " + result.nomadmin + " " + result.prenomadmin + 
")<br>";
          }
          wLogin.setStatus(this.tr("infoLoginWrong"));         
          wLogin.setShowStatusbar(true);
          forgetPassword.setContent(this.tr("forgetPassword",contact));
        }

      },this);




best regards 
Seb



Le 13 déc. 2009 à 08:02, skar a écrit :

> 
> Hi,
> 
> I've created a separate app for login and when I get a success to the 
> login request, I want to redirect the browser to the main app URL. How 
> do I do that within the success listener?
> 
> cheers,
> skar.
> 
> -- 
> --
> The life so short, the craft so long to learn. 
> 
> 
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to