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 "Ojeda, Donald" <DonaldOjeda@T...> on Wed, 19 Sep 2001 13:08:19 -0400
Donald - the reload() and close() methods dont take any arguments, they
apply to the current window object.  If you want to reload or close a window
other than the current window, then you call the method from a reference to
the window you want.

for example

//open a new window
var oWindow = window.open("...");

//do stuff
oWindow.navigate("...")

//then close the window
oWindow.close()

-----Original Message-----
From: Ojeda, Donald [mailto:DonaldOjeda@T...]
Sent: 19 September 2001 18:31
To: javascript
Subject: [javascript] RE: [vbscript] RE: refresh page from another page
(still does not--- work, here's my code.


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





  Return to Index