homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Refreshing Main Window from a PopUp!
how do I do this?
dreamcatcher

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



 
Msg#: 733 posted 12:51 am on Jun 28, 2003 (gmt 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!

:)

 

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 733 posted 1:30 am on Jun 28, 2003 (gmt 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.

korkus2000

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



 
Msg#: 733 posted 2:17 am on Jun 28, 2003 (gmt 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.

dreamcatcher

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



 
Msg#: 733 posted 7:37 am on Jun 28, 2003 (gmt 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.

:)

bonanza



 
Msg#: 733 posted 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]

dreamcatcher

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



 
Msg#: 733 posted 11:52 am on Jun 28, 2003 (gmt 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.

:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved