Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: refresh parent page but go back to previous section


Message #1 by Christine_Sun@c... on Wed, 11 Dec 2002 14:34:12 -0800
Because the child window will update the database with info's
That shows on parent window.  Child window has textboxes and
Dropdownlists and etc and a submit button.  When clicking
The submit button.  I need to update the database, refresh
The parent window and close the child window itself.

-----Original Message-----
From: SEAK, Teng-Fong [mailto:tfseak@f...]
Sent: Thursday, December 12, 2002 2:57 AM
To: javascript
Subject: [javascript] RE: refresh parent page but go back to previous 
sect
ion

	By "sections", you mean those separated by <a name=3D"sectionName"> ?
	The most essential question is : Why do you need to refresh the
parent window ?

> -----Message d'origine-----
> De : Christine_Sun@c...
> [mailto:Christine_Sun@c...]
> Envoy=E9 : mercredi 11 d=E9cembre 2002 23:34
> =C0 : javascript
> Objet : [javascript] refresh parent page but go back to
> previous section
>
>
> Hello, Friends,
>
> I think I have posted the problem once before, but didn't get
> the exact
> solution.  I thought I give another try.
> I have a page which is quite long.  From various section of the page
> Links would pop up a new window to do something.  After the
> work is done
> In the child window, I refresh the parent window and then
> close the child
> Window.
> The javascript command I use to refresh the parent window is
> Window.opener.location.reload();
> However, after the refreshing, the parent window is at the very top 
of
> The page instead of the previous section where the link was.
> Any idea how I can make it refresh but stay at the proper location?
> If you manually refresh the page, you can use F5.
> But how can I do it using javascript?
> Many thanks ahead.
>
> Christine Sun


  Return to Index