refresh parent window when add points in pop out window
hi, have a problem with javascript. i have a page and in it has a button.
when i click the button, it will pop out a page and let user to add
points.
how am i suppose to make it in a way that when user add points in the pop out window,
the parent window will refresh??
pls help!!
Mark Hensler posted this at 07:09 — 21st May 2002.
He has: 4,048 posts
Joined: Aug 2000
I don't remember the exact syntax, but it's something along the lines of:
window.opener.location=window.opener.location
dk01 posted this at 16:06 — 25th May 2002.
He has: 516 posts
Joined: Mar 2002
I think you have to set a window name for the parent window in its tag. Something like: window.name="mainWin"; and then refresh it using it name. I saw this once on a remote control script but i am not sure exactly how its done.
Sorry,
-dk
Suzanne posted this at 19:59 — 25th May 2002.
She has: 5,507 posts
Joined: Feb 2000
irt.org has that sort of information, under javascript popup windows, and a full explanation.
I compiled their tutorials on popup windows into a free script, which you might find useful as well (the tutorials I used are linked on that page for reference as well.
zerocattle.com/examples/popUp.html
hth,
Suzanne
Jack Michaelson posted this at 09:13 — 26th May 2002.
He has: 1,733 posts
Joined: Dec 1999
Alter the body-tag of the popup like this:
<body onload="opener.location.reload();">
Does this help?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.