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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page refresh?

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
How can I force a page to change after an item has changed?
Right now I'm working with javascript, (I know...someones gonna yell for me to go to the javascript forum) but I can't get it to work...

What I'm trying to do is create a select box, and onchange it finds the URL of the item selected, and opens a popup, then refreshes the page (self refresh)...that way it resets the select boxes and I dont have to do a ton of coding to reset the select boxes and getting an about:blank when the value is empty for the first selection (title) Regards,
Anth:cool:ny
 
Two Choices

#1: In the main page code your onChange function something like this.
Code:
window.open(etc....);
self.reload();
You can place a true parameter in the reload method to ignore cache settings on the computer.
Code:
self.reload(true)
This method will open the popup window and reload the main page simultaneously. To do it sequentially, place an onLoad event handler in your popup windows like this.
Code:
<script language=&quot;JavaScript&quot;>
function reloadMain() {
  self.opener.reload();
}
</script>
<body onLoad=&quot;reloadMain();&quot;
This will reload the main page AFTER the popup has finished loading.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top