468,550 Members | 2,300 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,550 developers. It's quick & easy.

Close popup from ASP pgm which uses response.contenttype

I have a program which is written in Javascript (pgm1). pgm1 does a window.open to display "please wait" popup (pgm2). pgm1 then submits a form which calls an ASP program (pgm3) which reads an Access database and creates an Excel file using: response.ContentType = "application/vnd.ms-excel". My question is how can I get pgm3 to close pgm2 after the Excel spreadsheet opens?
May 12 '10 #1

✓ answered by jhardman

There are a couple ways I can t hink of doing this in ASP. Have pgm3 save off a text file with a redirect statement AFTER it finishes making the excel file. Have pgm2 refresh periodically until it detects the redirect page, then close when the redirect page appears.

Jared

3 2068
jhardman
3,405 Expert 2GB
There are a couple ways I can t hink of doing this in ASP. Have pgm3 save off a text file with a redirect statement AFTER it finishes making the excel file. Have pgm2 refresh periodically until it detects the redirect page, then close when the redirect page appears.

Jared
May 18 '10 #2
Jared. I tried what you suggested, using a cookie but not a redirect and it works fine. Thanks!
May 19 '10 #3
jhardman
3,405 Expert 2GB
@livininmonroe
good to hear it worked! The cookie is a really good idea, I'll keep that in mind the next time someone asks!

Jared
May 21 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Webgour | last post: by
4 posts views Thread by Mike Kansky | last post: by
4 posts views Thread by Bjorn Sagbakken | last post: by
reply views Thread by Nathan Sokalski | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.