You will have the OPENER which is what opened the popup.  You can just
reference the frames from that like

opener.window.frame1.location.reload();
and
opener.window.frame2.location.reload();


then close the window


that should fix you up

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brad Apps
Sent: Tuesday, 26 August 2003 4:27 PM
To: CFAussie Mailing List
Subject: [cfaussie] Javascript Question.


Hey Guys,

Got a funny one, like usual, hope i can explain it ok.

I have a login link in the navigation frame.  The link opens a small new
window which prompts the user for a username and password.  If the user
name and password are correct I use this code:

<script language="JavaScript">
top.opener.location.reload();
window.close();
</script>

To refresh the navigation frame, which shows administration links to the
user, and closes the pop-up window.  I wish to make the main frame refresh
aswell, any ideas would be greatly appreciated.  Thanks in advance.




---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to