Re: Replacing an html page
Russell Kliese <[email protected]> Wed, 13 Jun 2007 21:36:12 +1000
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
Scott Dallas wrote: > I am producing a page, then my program does some work, then I need to > replace the page. The way my current code is working, its just adding > the new html to the end of the current document. How do I replace the > page rather than adding to it? Some alternatives are given on the following page: <http://wp.netscape.com/assist/net_sites/pushpull.html>. Probably the most interesting is the "Content-type: multipart/x-mixed-replace" method. You can see this in action by finding a bug at <https://bugzilla.mozilla.org/>. A page is displayed while the search is in progress. The page is replaced when the search results are available. Cheers, Russell Kliese