<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Javascript] Table within a table?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Bill,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> What's your code that opens the
window? If you don't explicitly set the opener property, you might want to
go ahead and do that, e.g.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>var newWin = window.open(all that
stuff);</FONT></DIV>
<DIV><FONT face=Arial size=2>if(!newWin.opener) {</FONT></DIV>
<DIV><FONT face=Arial size=2> newWin.opener =
window;</FONT></DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> You might also try referring to
the parent window as window.parent (from the child window); I haven't tried
that, but it's worth a shot.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Peter</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bill.marriott@optusnet.com.au
href="mailto:bill.marriott@optusnet.com.au">Bill Marriott</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 02, 2001 3:33 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] opener object</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi Everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm new to the list so please let me know if I
don't follow the list etiquette.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm also relatively new to Javascript and have
the following problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>I have a popup window I want to use to let the user select the next page
for the parent window to go to.<BR>On the 'on click' of a table cell in
the popup , I want the popup to close<BR>and the parent window to go to
the new address.<BR><BR>I can't get the following code to work.<BR>Can anyone
see why , Please?<BR><BR>function goPage(src) ( in the
popup code script tag)<BR>{ <BR> opener.focus();</DIV>
<DIV> opener.location.href = src;<BR>
top.window.close();<BR>}<BR><BR>onclick="javascript:return
goPage('new_wd.htm')" is the code in popup that calls the
function.</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'm getting an error " opener is not an
object"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>Bill</FONT></DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>