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

Browser message when PDF finished loading?

Status
Not open for further replies.

darkdragon76

Programmer
Dec 13, 2001
2
US
What i'm doing is generating a pdf on the fly from a jsp, and then displaying it to the screen for the user (all done through the web browser).

Basically, what happens is:[ol]
[li]the user clicks a link to display a pdf (that doesnt really exist yet)[/li]
[li]the server then begins to generate the pdf that the user wants[/li]
[li]as soon as the generation is kicked off, a new window pops up for the user, this is the browser window that will house the pdf when it is completed.[/li]
[li]another small window that says "please wait, loading" pops up on top of the 'pdf window'[/li][/ol]
What i am having trouble with is automatically closing the popup window that is on top of the pdf window when the pdf is finished loading.

There MUST be a message that is sent to the browser (ie, "status=done") when the pdf is finished loading. I say this because all of the pdf buttons (menu bar, scrollbars, etc) don't appear until the pdf is finished. To me, it seems that the best way to automatically close that popup window would be to use the message the browser gets. I have tried using " if (parent.window.status = 'done') self.close(); " (javascript), but that doesnt work because as soon as the browser window is up, the document status is 'done'...so it closes before the pdf is finished loading.

If anyone has some ideas or clues let me know.

Thanks for any help,
Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top