Hi,
I am trying to use information in a parent window for processing in a child window. Both pages are using HTTPS.
It works in HTTP but in HTTPS I am getting an access denied error.
Here is the code I am using:
script language="jscript">
//var coll=window.parent.document.all.tags("td");
alert(window.opener.location.href);
var coll=window.opener.document.all.tags("td");
//var coll=window.opener.all.tags("table");
//var coll=window.opener.document.all.tags("td");
if(coll!=null)
{
//alert(coll.length);
for(j=0;j<coll.length;j++)
{
//alert(coll[i].innerText);
var r, re;
//alert(coll[j].innerText);
var s=coll[j].innerText;
re = /Patient:/i;
r=s.match(re);
if(r=='Patient:')
{
//alert(s.replace(re,""));
document.frm.Patient.value=s.replace(re,"");
}
s=coll[j].innerText;
re = /User:/i;
r=s.match(re);
if(r=='User:')
{
//alert(s.replace(re,""));
document.frm.User.value=s.replace(re,"");
}
}
}
</script>
I am trying to use information in a parent window for processing in a child window. Both pages are using HTTPS.
It works in HTTP but in HTTPS I am getting an access denied error.
Here is the code I am using:
script language="jscript">
//var coll=window.parent.document.all.tags("td");
alert(window.opener.location.href);
var coll=window.opener.document.all.tags("td");
//var coll=window.opener.all.tags("table");
//var coll=window.opener.document.all.tags("td");
if(coll!=null)
{
//alert(coll.length);
for(j=0;j<coll.length;j++)
{
//alert(coll[i].innerText);
var r, re;
//alert(coll[j].innerText);
var s=coll[j].innerText;
re = /Patient:/i;
r=s.match(re);
if(r=='Patient:')
{
//alert(s.replace(re,""));
document.frm.Patient.value=s.replace(re,"");
}
s=coll[j].innerText;
re = /User:/i;
r=s.match(re);
if(r=='User:')
{
//alert(s.replace(re,""));
document.frm.User.value=s.replace(re,"");
}
}
}
</script>
Comment