Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Close Window (with O/P) out of IFrame

$
0
0

Hi experts,

 

I did create a new component (with bsp_wd_cmpwb) and therein a window.

In this window I call an IFrame which is another BSP-Application.

 

 

Now I would like to close this window out of the iframe.

I did already create an O/P to close the window, but I don't know how to start the method in IFrame to do this.

Just at opening the window SET_VIEW_GROUP_CONTEXT and DO_FINISH_INPUT are run-through.

 

If I can force a run to this methods out of the IFrame it would be also ok for me, because therein I can fire the O/P.

 

The closing with the O/P works fine, but I need to trigger/force it.

 

 

First I tried to close it with the following jscript, but it doesn't work in firefox.

 

<SCRIPT LANGUAGE="JavaScript">
    function closeAndRefresh(){
      opener.location.reload(); // or opener.location.href = opener.location.href;
      window.close();
    }
    {
    javascript:window.close();
    }
          </script>


Thank you for every help.


Kind regards


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>