I have the following situation. On one page, a user clicks on a link
which triggers a server-side program to generate the requested output
PDF. Depending on the specifics of the PDF being generated, this process
may take some time. When the triggering process is complete, the server
returns a "waiting page" which lets the user know that the PDF is being
generated and asks them to wait. When the PDF is ready, it is opened in
the browser.
This is done by adding the following javascript to the header of the
"waiting page" html file:
setTimeout('loc ation.replace("/download/<!--$m.filestem$-->.pdf");',1000) ;
The server then waits until the specified PDF is ready, and when it
detects that the file is ready, returns the file to the browser.
So far so good. This works.
Where I have problems is when the user hits the "back" button from the
PDF, assuming that it opened in Acrobat Reader in their browser. With
Mozilla 1.1, IE 5.5, Safari, Mac IE, the back button takes the user back
to the request page, not the "waiting" page, which is what I want. But
with IE 6.0, the user is taken back to the "waiting" page, which then
takes them to the PDF, and they get stuck in a loop.
How can I make IE 6.0 do the equivalent of location.replac e?
Thanks,
Christine
which triggers a server-side program to generate the requested output
PDF. Depending on the specifics of the PDF being generated, this process
may take some time. When the triggering process is complete, the server
returns a "waiting page" which lets the user know that the PDF is being
generated and asks them to wait. When the PDF is ready, it is opened in
the browser.
This is done by adding the following javascript to the header of the
"waiting page" html file:
setTimeout('loc ation.replace("/download/<!--$m.filestem$-->.pdf");',1000) ;
The server then waits until the specified PDF is ready, and when it
detects that the file is ready, returns the file to the browser.
So far so good. This works.
Where I have problems is when the user hits the "back" button from the
PDF, assuming that it opened in Acrobat Reader in their browser. With
Mozilla 1.1, IE 5.5, Safari, Mac IE, the back button takes the user back
to the request page, not the "waiting" page, which is what I want. But
with IE 6.0, the user is taken back to the "waiting" page, which then
takes them to the PDF, and they get stuck in a loop.
How can I make IE 6.0 do the equivalent of location.replac e?
Thanks,
Christine
Comment