Hello All,
I have portal component in which I have a JSP page. In the JSP page I have just added a single button . On the client click of that button I am trying to close the window. However the method does not seem to execute since the window is not getting closed.
I have created an iview based on this portal component and then assigned this iview to a particular page. This page is then being accessed from a workset.
Kindly respond.
For your Information I am writing the code that I have written in my jsp:
<table border="0" width="100%">
<tr>
<td>
<hbj:button id = "closeButton"
text = "Close Window"
design = "emphasized"
onClientClick = "window.close()"
/>
</td>
</tr>
</table>
Thanks and Regards
Pradeep Bhojak
Actually we creating a iview based on the portal archieve file. Then I have assigned this iview to a page and we have then assigned this page to a workset.
On the click of the button I am not getting any error , the first time I click in the status bar it shows "done" and for every click thereafter I get a messager of "javascript:void()" in the status bar.
When we preview the iview , since the preview is getting opened up in a new window, this works fine, but when it gets assigned to a page and then to a workset, it does not open up in a new window. So may be this is posing a problem.
One more thing I would like to point out, there are no standard buttons in which we can close the existing views . i.e suppose I have taken the following path
System Administration->Monitoring->Portal Content
->Object Locking..
After I try and release the locked objects, we are just displayed that the locked objects are released, but no-where on that particular page we can close that page.Is this fuctionality provided intentionally or no body has pointed out till now.
Add a comment