Hi,
This is strange – since the script already worked before. I have a widow A with the following js function:
[CODE]
function newWindow(file,window) {
msgWindow=open(file,window,’resizable=no,scrollbars=yes,width=600,height=400′);
if (msgWindow.opener == null) msgWindow.opener = self;
}
And one link in that page:
[CODE]
<a href=”javascript:newWindow(‘../cgi-bin/calc/calc.pl’,’windowB’);” >Calculate</a>
Ok: if I click the link a new window will open, B, with a perl script to performe some calculations. After these calculations, the results are placed in a table, each other with a link:
[CODE]
<a href=”#” onclick=”javascript:data(data1,data2);window.close()” >
and the following function is in the header:
[CODE]
function data (data1,data2){
if (parent.frames.length != 0) {
// loaded in frames
}
else {
opener.document.form.var1.value=data1;
opener.document.form.var2.value=data2;}
The problem is that I get always an error in this last function, data – access denied.
Does anyone knows why?
Kind regards,
Kepler