Posted in XPages

Close window from XPages Server Side Javascript

Ive been asked by my superior if theres a way to close a window coming from a dialog box.

What i know previously is that you can only redirect it to an xpage or on the client side you can trigger a window.close

So i search for a way that i can call a clientside code from a server side script and there i found facesContext.getViewRoot().postScript() wherein you can pass the window.close() as parameter and there my problem solve

Advertisements

Author:

Lotus Notes Consultant @ 77GSI. contact me thru ym: glennliwanag

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s