Skip to Content
avatar image
Former Member

Window.Close() not Working in Iview

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 20, 2004 at 02:36 AM

    Are you getting any errors?

    You may need to specifiy the full "address" of window.close() (ie. document.theForm.window.close())

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 20, 2004 at 03:08 PM

    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ahh, that's something different.

      The best way is probably to make a new page under the same menu item and make it completly blank.

      On the button just make a link using the navigationtarget (search help.sap.com for info on this)

      If you want a quick hack, try <a href="someblankpage.html placed in the document root" target="ivuFrm_page0ivu3">