Close popup from ASP pgm which uses response.contenttype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • livininmonroe
    New Member
    • May 2010
    • 2

    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.Conten tType = "applicatio n/vnd.ms-excel". My question is how can I get pgm3 to close pgm2 after the Excel spreadsheet opens?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

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

    Comment

    • livininmonroe
      New Member
      • May 2010
      • 2

      #3
      Jared. I tried what you suggested, using a cookie but not a redirect and it works fine. Thanks!

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by livininmonroe
        Jared. I tried what you suggested, using a cookie but not a redirect and it works fine. Thanks!
        good to hear it worked! The cookie is a really good idea, I'll keep that in mind the next time someone asks!

        Jared

        Comment

        Working...