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

Switching between windows and refreshing etc.

Status
Not open for further replies.

thegiraffe

Programmer
Mar 8, 2002
49
IE
From my main page i want to open a second window to accept further information.

On the second screen it will accept the extra information.

When second screen is closed / confirmed i want the table to be updated with the information, second screen to close and 1st main screen to be refreshed.

i can get the second window to open, there is information that needs to be passed between the two, looking into that one too, ie. username etc.

my main problem is getting the second window to close and refresh the first window!

any ideas?

Dave

Theres nothing worse than an idea when its the only one we have!
 
in the new window...put it in a function and then call it when you want it:

window.close()
window.opener.location.href=window.opener.location.href;

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
You should first refresh an opener, and only then close current window:
[tt]
opener.location.reload();
window.close();
[/tt]

 
That would be smart ;-). The problems that I run into when I don't think...no wonder I'm always asking for help:)

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top