Click to See Complete Forum and Search --> : window.opener riddle


kopite
06-13-2003, 07:35 AM
Help!

I am using IE5, IE5.5 and IE6.

I have a main window, that opens another window. This child window then updates a variable in the main window, i.e. window.opener.myVar='xxx'. I then close the child window, so just leaving the main window open.

When I then try updating myVar in the main window, I get a run time error that "The callee [...] is not available and disappeared, all connections are invalid". I don't see how this can happen, as I am not reliant on the child window. Of course if I never open the child window whatsoever, then updating myVar in the main window works correctly.

Anyway, it is a major problem, how can I fix it ???

Khalid Ali
06-13-2003, 07:46 AM
It means your syntax is wrong..you need to post your code ,better if you can post a link to your page from whre you open the child window.

SlankenOgen
06-13-2003, 10:03 AM
Try calling a function in the opener to set the var

window.opener.setVar("xxx");

~mgb