oops.. here is what i use to fully do this.
opener.location=3Dopener.location;
works for me =3D)
Maybe what you are doing is more complicated, but anyway...
J. Scot
-----Original Message-----
From: Greg Dunn [mailto:greg.dunn@n...]
Sent: Monday, July 22, 2002 10:54 AM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
Oh, and then pass the anchor name to the popup as a variable in the
querystring.
window.open('popup.htm?a=3DmyAnchorName')
Sorry, I should have sent this too. This JavaScript in your popup will
read
the querystring and set a variable for the URL of the refresh page
including
the target anchor:
var args =3D new Object();
// Get Query String
var query =3D location.search.substring(1);
// Split query at the ampersand
var pairs =3D query.split("&");
// Begin loop through the querystring
for(var i =3D 0; i < pairs.length; i++) {
// Look for "name=3Dvalue"
var pos =3D pairs[i].indexOf('=3D');
// if not found, skip to next
if (pos =3D=3D -1) continue;
// Extract the name
var argname =3D pairs[i].substring(0,pos);
// Extract the value
var value =3D pairs[i].substring(pos+1);
// Store as a property
args[argname] =3D unescape(value);
var refreshURL =3D "openerPage.html" + args.a;
Greg
-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: Monday, July 22, 2002 12:22 PM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
Greg,
thanks.
but where you were at parent window is dynamic,
i.e. different each time, depends on the user...
-----Original Message-----
From: Greg Dunn [mailto:greg.dunn@n...]
Sent: Monday, July 22, 2002 10:05 AM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
Put an internal anchor tag in the opener page
<a name=3D"goBackToHere">
and add it to the refresh URL.
myPage.html#goBackToHere
Greg
-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: Monday, July 22, 2002 11:59 AM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
well, window.opener.location.reload(); will refresh the page,
but will take you to the top of the page, instead of where
you already were.
any other suggestions? thanks.
-----Original Message-----
From: Rajeev_Venkatraman [mailto:Rajeev_Venkatraman@s...]
Sent: Friday, July 19, 2002 11:53 PM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
what u can do is set the window.opener.location.href to the same page as
u
want to be loaded.. i donno whether that will serve the purpose.. but do
give it a shot..
-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: Saturday, July 20, 2002 4:57 AM
To: javascript
Subject: [javascript] RE: how to refresh a parent window?
i just found out,
window.opener.close(); will close the parent window for you.
any suggestion how to refresh the parent window?
window.opener.refresh() didn't work
thanks.
-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: Friday, July 19, 2002 3:08 PM
To: javascript
Subject: [javascript] how to refresh a parent window?
Hi, all,
I need help in the following task.
How to refresh a parent window using javascript?
I tried parent.location.reload()
but got an error.
Any suggestions appreciated.
Christine Sun
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
************************************************************************
**
This email (including any attachments) is intended for the sole use of
the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
distribution or forwarding of any or all of the contents in this message
is
STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
the sender by email and delete all copies; your cooperation in this
regard
is appreciated.
************************************************************************
**
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20