When you call showModalDialog you need to pass "self", without the quotes, as the second argument. You can then access the opener with:
Code:
var opener = window.dialogArguments;
You can then access the functiuon "nyFunction with:
Code:
opener.myFunction();
If you are already using the second parameter you can package all you variables into an associative array:
In opener
Code:
var myVar1 = "Hello";
var myVar2 = "Joe";
var o = new Object();
o.var1 = myVar1;
o.var2 = myVar2;
o.opener = self;
var vRetVal = showModalDialog(<url>, o);
In modal dialog:
Code:
var o = window.dialogArguments;
var myVar1 = o.var1;
var myVar2 = o.var2;
var opener = o.opener;
--
Joe (
Microsoft MVP - XML)