cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript: window.opener not set after window.open

Former Member
0 Kudos

Hello gurus,

I have written a small auxiliary ITS service, that is used for EBP, opens a new window and returns a value to the original window by calling a javascript: window.opener.get_prod_cat( prod_cat );

All worked fine on ITS 6.10 and now it doesn't work on ITS 6.20. I am not sure though if it is a problem of ITS.

My investigation revealed, that window.opener property is set in the old version when openning a new window while it remains as [undefined] in 6.20 (IE6.0).

Any idea what can cause the problem and/or how it can be solved?

Regards,

Michal Klemba

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

It seems to be an ITS!!!

I open a new window as follows:

var zURL = String(document.URL);

zURL = zURL.substring(0,zURL.indexOf("wgate",0))+"wgate/zbspstart/!?service=sap/bc/bsp/sap/zbbpaux/prodcattree.htm";

twindow=window.open(zURL,"thewindow","tollbar=no[...]");

... and in the new window the 'window.opener' property is empty.

When I open any other window (i.e. not an ITS service - e.g. BSP) - all works fine.

Do you know how to make an ITS service that is opened in a new window not to clear the 'window.opener' property?

Regards,

Michal