Welcome to WebmasterWorld Guest from 54.204.165.156

Forum Moderators: open

Refreshing Main Window from a PopUp!

how do I do this?

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

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



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 Jun 28, 2003 (gmt 0)

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



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 Jun 28, 2003 (gmt 0)

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



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 Jun 28, 2003 (gmt 0)

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



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 Jun 28, 2003 (gmt 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 Jun 28, 2003 (gmt 0)

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



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.

:)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month