When you open a new window (tab or not) via window.open it runs under 
the security context of a popup window, this means you can safely use 
window.close to close it. However you cannot use window.close on a 
normal window.tab (IIRC some browsers provide an advanced setting to 
change this behaviour).

Usually it is best to redirect to a "thank you, you have been logged 
out" page rather than trying to close the window

skar wrote:
> Hi Matt,
>> I was under the impression you wanted to use the same window?
>>
>> If so you can do window.location = newURL
>>   
> Thanks for the tip. Yes, I want to use the same window. I was actually 
> looking into the document object for redirecting to the main app URL. 
> Once I got hint about the window object, I figured out the open, 
> location attributes/methods via firebug :)
> 
> Also, it seems that I can close the main app tab on logout, only if I 
> open the main app in a new tab from the success listener. But I don't 
> want to open in a new tab. Is there any standard way to do this across 
> all browsers?
> 
> cheers,
> skar.
> 


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