disaray80
10-07-2003, 12:35 PM
I am trying to create a simple pop-up window to remind people of an upcoming event. Included in the window is a link to the events page, however I want that link to open in the original index page that calls for the pop-up, not the pop-up window which is not resizeable, w/o toolbars, etc.
I'm sure there are solutions, but darned if I can find them on the site.
Thanks!
This post by Charles might help you: http://forums.webdeveloper.com/showthread.php?s=&threadid=18673#post99023
disaray80
10-07-2003, 06:20 PM
Thanks for your fast reply!
I am still having a small problem. Though both the original pop-up script in the parent page, and the redirect script in the pop-up page work while testing on my computer, the parent page generates error code in the <head> when publishing to the web. Worse off, this only happens to certain computers, though all are running IE 6.
What follows is my original parent code, and the resulting error code.
ORIGINAL SCRIPT:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=330,height=330,left = 250,top = 150');");
}
// End -->
</script>
<BODY onLoad="javascript:popUp('eggers.htm')">
ERROR SCRIPT FROM PUBLISHED PAGE, PRECEDES ORIG SCRIPT:
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<BODY onLoad="var SymTmpWinOpen = window.open; window.open = SymWinOpen; javascript:popUp('eggers.htm'); window.open = SymTmpWinOpen;">