Yes i listened to every event and none off them is fired before the 
browser-login promt appears.

I guess I have to use a workaround.
We are using our own Restful-webservice-framework which will (since today ;)) 
check, if a Requestheader ("X-GERMO-No-Auth-Header") was sent.
If this header was sent 
(myrequest.setRequestHeader("X-GERMO-No-Auth-Header","1");) the response will 
not include the "WWW-Authenticate"-Header (but still ErrorCode 401). 
And because all browsers will only show the login-promt if this header is set, 
I'm happy ;)


-----Ursprüngliche Nachricht-----
Von: thron7 [mailto:[email protected]] 
Gesendet: Montag, 25. Februar 2013 16:45
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] qooxdoo 0.7 with current qooxdoo-version mix ?

I'm not sure if you can override browser behavior, but have you tried listening 
for the "failed" event?!

T.

On 02/25/2013 09:14 AM, Tobias Koller (GERMO GmbH) wrote:
> I'm using like this:
>
>               get : function(path)
>               {
>                       var url = this.getBaseUrl() + "/" + path;
>                       
>                       
>                       var r = new 
> qx.io.remote.Request(url,"GET",qx.util.Mime.JSON);
>                       r.setUsername(this.getUsername());
>                       r.setPassword(this.getPassword());
>                       r.setAsynchronous(false);
>                       r.setUseBasicHttpAuth(true);
>                       r.setTimeout(200000);
>                       
>                       
>                       var ret = "";
>
>                       r.addEventListener("completed", function(e){
>                               ret = e.getContent();
>                               alert(ret["Name"]);
>                               
>                       },this);                        
>                       
>                       r.send();
>               },
>
>
> -----Ursprüngliche Nachricht-----
> Von: thron7 [mailto:[email protected]]
> Gesendet: Montag, 25. Februar 2013 09:06
> An: qooxdoo Development
> Betreff: Re: [qooxdoo-devel] qooxdoo 0.7 with current qooxdoo-version mix ?
>
>
> On 02/25/2013 06:59 AM, Tobias Koller (GERMO GmbH) wrote:
>> Thanks for your help.
>>
>> But i spend almost 2 days for trying to convert the app to 0.8.
>> I found a way to use the 0.7-version with our new restfull webservices.
>> After I made all changes in my application I may have the time to create a 
>> complete new application under qooxdoo 2.1.x.
>>
>> I have one more question (qx 0.7.4):
>>
>> We have a restful-webservice which needs authentication (f.e.
>> http://localhost/myapp/documents) When I enter a wrong combination of 
>> user/password, the browser automatically opens a login-promt because our 
>> webservice-framework throws a 401-error.
>> Is there any way, except of not throwing a 401-error, to prevent the browser 
>> to open this login-promt?
> Well, *how* is the REST resource being requested? Are you setting an iframe's 
> URL to it? Or are you using one of the qooxdoo IO APIs?
>
> T.
>
>
> ----------------------------------------------------------------------
> -------- Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
> today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ----------------------------------------------------------------------
> -------- Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite 
> for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to