S
sentinel
Hi all,
I'm trying to reload a frame from a pop-up, but really cannot figure
this out.
Within my index.htm file, I make a link to call a pop-up frame with a
javascript function that calls the following code from an external
javascript source file, dynamically created with PHP
document.write('<a href="javascript:void(0);"
onclick=\'win1=window.open("http://127.0.0.1/comments.php?site_name=<?php
echo $site_name;?>&linker='+linker[argument]+'", "devWindow",
"height=450,width=420,screenX=0,left=50,screenY=0,top=100,location=0,menubar=0,scrollbars=1,status=0,toolbar=0",
"option2") ;win1.focus(); \' target="">'+href+'</a>');
Within the pop-up window, I use the following code
----> Head section
<script type="text/javascript">
cleanup () {
opener.location = opener.location.href;
opener.location.reload();
}
</script>
</head>
<body class="body" marginheight="0" marginwidth="0"
onUnload="cleanup()">
I want the file index.php to reload when the pop-up is closed down. I
seem to have tried every variation of opener.reload(), but still can't
manage it solve it.
Can anyone see what I am doing wrong ?
I'm starting to pull my hair out.....
Rgds
Neil.
I'm trying to reload a frame from a pop-up, but really cannot figure
this out.
Within my index.htm file, I make a link to call a pop-up frame with a
javascript function that calls the following code from an external
javascript source file, dynamically created with PHP
document.write('<a href="javascript:void(0);"
onclick=\'win1=window.open("http://127.0.0.1/comments.php?site_name=<?php
echo $site_name;?>&linker='+linker[argument]+'", "devWindow",
"height=450,width=420,screenX=0,left=50,screenY=0,top=100,location=0,menubar=0,scrollbars=1,status=0,toolbar=0",
"option2") ;win1.focus(); \' target="">'+href+'</a>');
Within the pop-up window, I use the following code
----> Head section
<script type="text/javascript">
cleanup () {
opener.location = opener.location.href;
opener.location.reload();
}
</script>
</head>
<body class="body" marginheight="0" marginwidth="0"
onUnload="cleanup()">
I want the file index.php to reload when the pop-up is closed down. I
seem to have tried every variation of opener.reload(), but still can't
manage it solve it.
Can anyone see what I am doing wrong ?
I'm starting to pull my hair out.....
Rgds
Neil.