问题描述
我正在做一个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中已经出现了同样的问题。
对于我的项目,我将页面重定向到我的主页。
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.
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但它不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!