|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Replacing an html pageI'm not sure how to
ask this question, so forgive me if I am less than succinct.
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?
Any help
appreciated.
Scott Dallas
Science, like nature, must also be tamed,
with a view towards it's preservation.
_______________________________________________ help-cgicc mailing list help-cgicc@... http://lists.gnu.org/mailman/listinfo/help-cgicc |
|
|
Re: Replacing an html pageThe only way to get a browser to replace a currently loaded page is via
javascript. Research the innerHTML property and/or the DOM. Using javascript you can replace entire sections of a page without a complete reload. You can also reload a page completely to "replace" it. Scott Dallas wrote: > I'm not sure how to ask this question, so forgive me if I am less than > succinct. > > 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? > > Any help appreciated. > Scott Dallas > Science, like nature, must also be tamed, > with a view towards it's preservation. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > help-cgicc mailing list > help-cgicc@... > http://lists.gnu.org/mailman/listinfo/help-cgicc -- Matthew A. Nicholson matt-land.com _______________________________________________ help-cgicc mailing list help-cgicc@... http://lists.gnu.org/mailman/listinfo/help-cgicc |
|
|
Re[2]: Replacing an html pageHello Matthew,
Monday, June 11, 2007, 5:39:35 AM, you wrote: MAN> The only way to get a browser to replace a currently loaded page is via MAN> javascript. That's not exactly correct you can reload the entire page using javascript, refresh meta, or HTTP Refresh header. MAN> Research the innerHTML property and/or the DOM. Using javascript you MAN> can replace entire sections of a page without a complete reload. You MAN> can also reload a page completely to "replace" it. MAN> Scott Dallas wrote: >> I'm not sure how to ask this question, so forgive me if I am less than >> succinct. >> >> 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? >> >> Any help appreciated. >> Scott Dallas >> Science, like nature, must also be tamed, >> with a view towards it's preservation. >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> help-cgicc mailing list >> help-cgicc@... >> http://lists.gnu.org/mailman/listinfo/help-cgicc -- www.rol.ru Best regards, Igor mailto:sprog@... _______________________________________________ help-cgicc mailing list help-cgicc@... http://lists.gnu.org/mailman/listinfo/help-cgicc |
|
|
Re: Replacing an html pageScott 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 _______________________________________________ help-cgicc mailing list help-cgicc@... http://lists.gnu.org/mailman/listinfo/help-cgicc |
| Free embeddable forum powered by Nabble | Forum Help |