Skip to Content
0
Former Member
Jul 08, 2014 at 07:59 AM

Close Window (with O/P) out of IFrame

47 Views

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