http://www.perlmonks.org?node_id=948760


in reply to How to replace the output (new html page)?

You are searching for some kind of server push with HTTP. It can be done -- look at a Bugzilla's after-search "munching bugs" screen.

I'm not familiar with it, but I suspect it is a case of sending two files with "Content-Disposition: inline" and some sort of MIME splitting to distinguish the two HTML pages. Try to find out more by reading the Bugzilla source.

  • Comment on Re: How to replace the output (new html page)?

Replies are listed 'Best First'.
Re^2: How to replace the output (new html page)?
by Anonymous Monk on Jan 19, 2012 at 17:32 UTC

    As the other Anon hinted at, server push technology (originally introduced by Netscape -- yes, it's that old) appears not to work in MSIE, but the other major browsers seem to handle it fine.

    An alternative solution would be to save your second HTML page (temporarily?) to a publicly-accessible place, and redirect/link there once you are done. Some strategically placed output flushing might work best there (but might also be broken by a change of your web server or CGI serving configuration).

Re^2: How to replace the output (new html page)?
by Anonymous Monk on Jan 19, 2012 at 11:43 UTC