Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Automatically refreshing parent window

Reply
Thread Tools

Automatically refreshing parent window

 
 
Steve Dower
Guest
Posts: n/a
 
      12-08-2003
Is it possible to (via Javascript) refresh a parent page from a child page.
I have an app that displays a list of items that the user has authority to
change. If the user selects one of the items, another window is opened
containing the details of the item. If the user changes any of the details
of the item I'd like to refresh the original (list) page.
Thanks in advance.
Steve


 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      12-09-2003
Steve Dower wrote:

> [...] If the user selects one of the items, another window is opened
> containing the details of the item. If the user changes any of the
> details of the item I'd like to refresh the original (list) page.


if (opener
&& !opener.closed
&& opener.location
&& (typeof opener.location.refresh == "function"
|| typeof opener.location.refresh == "object"))
opener.location.reload();


HTH

PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
closing the child window and refreshing the parent window Ane007 The Lounge 1 05-05-2008 06:54 AM
Closing child window and refreshing Parent window automatically =?Utf-8?B?U2lsZWVzaA==?= ASP .Net 4 10-14-2004 02:01 AM
model dialog box keeps refreshing its parent window. =?Utf-8?B?UGlrb2xvIE1vbmRv?= ASP .Net 1 06-09-2004 08:46 AM
Refreshing parent window Kenneth ASP .Net 4 01-05-2004 10:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57