This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 9, 2011, 8:16 AM
170 Posts

How to close an Xpage in the client

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 5
 I have an application where I have changed on one for to open an xpage instead of the old Notes Form.
 
But I can't see how to to close the xpage from a button ? 
 
Isn't this possible? 
 
 
/Fredrik 
Sep 9, 2011, 10:45 AM
4 Posts
Re: How to close an Xpage in the client
Without testing I would guess that you could use Client Side Javascript. Something like: window.close().
Sep 9, 2011, 10:54 AM
272 Posts
Re: How to close an Xpage in the client
Hi,
 
window.close() doesn't work, not in NotesClient and not in Firefox (security issue).
 
Sven
Sep 9, 2011, 11:26 AM
3 Posts
Re: How to close an Xpage in the client
 window.close() should work but you cannot close the windows that your app doesn't open (ie the home page opened from the desktop).
 
Sep 9, 2011, 12:09 PM
170 Posts
Re: How to close an Xpage in the client
 I have tried window.close() and that doesn't work.
 
According to the findings I have done is that window.close() only work if the window is opened using a window.open. 
 
But in this case the parent is an ordinary Notes view. 
 
/Fredrik
 
Sep 9, 2011, 2:40 PM
3 Posts
Re: How to close an Xpage in the client
 Yes.
In fact, window.close() do the stuff only when you can get a valid window.opener()

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal