Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reloading opener from child window ?

Status
Not open for further replies.

Bix78

Programmer
Jul 26, 2002
6
CL
Hello all,

I have a main page displaying values in lines. After each line I put a link that pops up a "modify" window.

The modify window displays the values of the lines, as well as the opportunity to modify them, of course.

Once new values are submitted and verified, I have this code :

window.opener.location='mainpage.php?phpvar01=value&phpvar02=anothervalue#anchor';
window.opener.reload();

The mainpage goes correctly to the appropriate anchor (sorry if it's not the appropriate english term for the # thingie ; I am French speaker :)), but is NOT reloaded : the values don't appear modified and I have to right click and "reload frame" to see them.

Then I thought it could be a syntaxic problem so I tried several things :
- window.opener.reload();
- window.opener.frames["mainpage_opener_name"].reload()
- I tried to put a "true" in the parenthesis of "reload"
- I tried without the word "window"

.. and nothing works.

But as I was trying to figure out, I made a mistake at one moment and I have only this line :

window.opener.location='mainpage.php?phpvar01=value&phpvar02=anothervalue'

Which is without the anchor and WITHOUT the ; sign... and it worked! the main page's opener frame WAS reloaded, but not at the anchor I wanted ...
I of course tried to add thr anchor at this moment .. but doesnt work.


So, has any of you an idea about how I could reload my main page's opener frame, and set it to a specific anchor ?

Thanks in advance.

Bix
Belgium
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top