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

Window popup closes when opening 2nd excel file

Status
Not open for further replies.

maboo59

Programmer
Mar 21, 2005
18
US
Hi,
I have a page that generates a report in excel. They page is submitted and the sql query is built in the .cs file, then a javascript function opens a new window sending that query to a page that gets the results and puts the info into a spreadsheet. first time you run it is works fine. if you go back to the parent window and run the report again, sometimes it will close the existing popup window other times it will run the report with no problems.
What could be causing this?
Is it possible to detect if a popup is open and close it before opening a new one?

Maboo59
 
I think that if you name your popup window and it is already open it may have a conflict of whether to load a new window with the same name or close it an open a new window.

You may actually be better off asking this question in the javascript forum (forum216) as they may have more of experience on what is best practice.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top