Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: RE: [vbscript] RE: refresh page from another page (still does not--- work, here's my code.


Message #1 by "josh coombe" <joshuacoombe@h...> on Mon, 12 Aug 2002 05:09:59
> Dear Group,
>     
> I'm still having problems, here's my code.
> 
> <SCRIPT LANGUAGE="JavaScript">
> function CloseEditForm()
> {
> //MarginReqUpdate.asp is the page that I am trying to get to reload.
> 	window.document.location.reload("MarginReqUpdate.asp");
> 	
> //MarginEdit.asp is the page that I am on at the time when I am trying to
> reload MarginReqUpdate.asp. 	
> 	window.close("MarginEdit.asp");
> }
> 			
> </SCRIPT> 
> 
> Any help is greatly appreciated.
> Thank You,
>     Don Ojeda
> 	
> 
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
> Sent: Wednesday, September 19, 2001 6:18 AM
> To: vbscript
> Subject: [vbscript] RE: refresh page from another page
> 
> 
> window.opener.refresh()
>  
> or 
> 
> window.opener.reload()
> 
> or for fool-proof browser support
> 
> window.opener.navigate(window.opener.document.location.href);
> 
> (or you can hard-code the page url instead of
> "window.opener.document.location.href")
> 
> -----Original Message-----
> From: Ojeda, Donald [mailto:DonaldOjeda@T...]
> Sent: 19 September 2001 00:16
> To: vbscript
> Subject: [vbscript] refresh page from another page
> 
> 
> Dear group,
>      I have a popup form (child page) which I am able to make changes to 
> the text fields and then submit to a page with the changes (parent page),
> unfortunately when I submit to the page with the changes the page does 
not
> refresh.
> Is there a way to refresh a page(parent page) from another page(child 
page)?
> 
> 
> Thanks in advance,
>      Don Ojeda
> ---
> You are currently subscribed to vbscript as: donaldojeda@t...
> To unsubscribe send a blank email to $subst('Email.Unsub')
> 
Hello Above,
 Don, if you execute this line it will refresh the "opener" or parent.

window.opener.navigate(window.opener.document.location.href);

As Alex said, it's fool proof. However being a genius, I can tell you it 
isn't Genius-Proof. If the opener has been scripted using POST data, the 
post data will not be loaded and hence will give an error.

Kind Regards,
Joshy C

  Return to Index