A
Asterix
Hi Guys,
I know this is probably an easy one, but I am having issues.
Basically, I have a pop-up (child) that controls the parent window.
Clicking on a link on the child window should redirect the parent.
Unfortunately, I cannot get it to work with FireFox after selecting
more than one option.
Javascript code:
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features).focus();
}
function changeParent(theURL) {
if (parentExists())
{
window.opener.location.href = theURL;
}
else
{
MM_openBrWindow(theURL,'myWindow','location=1,status=1,scrollbars=1,resizable=1,menubar=1,toolbar=1,width=600,height=500');
}
}
function parentExists() {
if (window.opener && window.opener.open && !window.opener.closed)
return true;
else return false;
}
This works for both Safari and IE 6 & 7, but not for FF 2. After
clicking one link from the child window it redirects the parent
correctly, but after selecting an additional link FF does not work.
After installing FireBug I am getting the error: uncaught exception:
Permission denied to get property Window.open.
Function is called by:
<a href="#" onclick="changeParent('<%#Eval("DetailPageURL") %>');
return false;">Link 1</a>
Any ideas or links for solutions would be appreciated.
Thanks in advance,
Sully
I know this is probably an easy one, but I am having issues.
Basically, I have a pop-up (child) that controls the parent window.
Clicking on a link on the child window should redirect the parent.
Unfortunately, I cannot get it to work with FireFox after selecting
more than one option.
Javascript code:
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features).focus();
}
function changeParent(theURL) {
if (parentExists())
{
window.opener.location.href = theURL;
}
else
{
MM_openBrWindow(theURL,'myWindow','location=1,status=1,scrollbars=1,resizable=1,menubar=1,toolbar=1,width=600,height=500');
}
}
function parentExists() {
if (window.opener && window.opener.open && !window.opener.closed)
return true;
else return false;
}
This works for both Safari and IE 6 & 7, but not for FF 2. After
clicking one link from the child window it redirects the parent
correctly, but after selecting an additional link FF does not work.
After installing FireBug I am getting the error: uncaught exception:
Permission denied to get property Window.open.
Function is called by:
<a href="#" onclick="changeParent('<%#Eval("DetailPageURL") %>');
return false;">Link 1</a>
Any ideas or links for solutions would be appreciated.
Thanks in advance,
Sully