Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: open

Message Too Old, No Replies

Refreshing Main Window from a PopUp!

how do I do this?

     
12:51 am on Jun 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Hi guys,

I`m in need of a little javascript.

Assume I have a members area on my website and when each member clicks an edit link in their profile, their profile opens up in a pop up window where they can edit their details.

How do I do it so that when they click "Update", their details are updated, then the pop up window closes and the main page refreshes showing the new details?

Thank you!

:)

1:30 am on June 28, 2003 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


I'm a bit weak on my javascript but I don't think you can do this because of security issues. I could be totally out-to-lunch on this too so perhaps a JS guru might stop in and tell us.
2:17 am on June 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
posts:3732
votes: 0


You can do a refresh from a window opened by that document.

window.opener.history.go(0);
window.close();

thus should refresh the parent window.

7:37 am on June 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Thanks korkus2000, thats exactly what I was looking for.

I got the idea from my Invision forum software. With that you have a link called "My Assistant", which when clicked opens a pop up window. When any of the links are clicked in that window, it closes that window and refreshes the main page to direct to whatever link was pressed.

:)

11:33 am on June 28, 2003 (gmt 0)

Junior Member

joined:Apr 27, 2003
posts:131
votes: 0


Dreamcatcher,

You can find a lot of samples out there. My first crack on google turned up quite a few:

Google: javascript remote control [google.com]

11:52 am on June 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Thanks bonanza, thats very useful. I could have done a search, but with posting you get to hear different opinions of different ideas, which I always enjoy reading.

:)