如何关闭Notes客户端中的xpages?我使用CSJS window.close但它不起作用 [英] How to close xpages in notes client? I use CSJS window.close but it's not working

查看:104
本文介绍了如何关闭Notes客户端中的xpages?我使用CSJS window.close但它不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个xpinc应用程序。



我按照此处并对其进行修改。目前,关闭按钮位于我的主页面上。



客户需要关闭按钮而不是正常的X才能关闭。但是这个例子表明我应该创建2个xpages。



在第1页我应该创建一个带有 window.open(xpage2.xsp)的按钮,然后只有 window.close()在xpage2的按钮中将起作用。当我没有 window.open()开始时,我怎么 window.close()



我查看了演示讨论xpage和OneUI,但没有类似的东西。我尝试在xpage1 onClientLoad事件上放置 window.open(xpage1.xsp),但这也不起作用。

解决方案

只有当window.open打开页面时,window.close才能正常工作。否则它不起作用。请看下面的问题,stackoverflow中已经出现了同样的问题。



如何关闭xpages?



对于我的项目,我将页面重定向到我的主页。



<我正在寻找解决这个问题的好方法。


I'm doing an xpinc application.

I followed the example in here and modified it. Currently the close button is on my main page.

The customer wanted a close button instead of the normal 'X' to close. But the example suggests that I should create 2 xpages.

On page1 I should create a button with window.open(xpage2.xsp) and only then window.close() in a button in xpage2 will work. How do I window.close() when I have no window.open() to begin with?

I've check Demo Discussion xpage and OneUI but there's nothing like that. I tried putting window.open(xpage1.xsp) on xpage1 onClientLoad event but that's not working too.

解决方案

Only if the page is opened by window.open, then window.close works fine. otherwise it does not work. Please see the following question, same question has already appeared in stackoverflow.

How to close the xpages?

For my project, I redirected the page into my home page.

And I am also searching the fine solution for this problem.

这篇关于如何关闭Notes客户端中的xpages?我使用CSJS window.close但它不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆