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
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