in reply to Re: Preventing Browser Timeout
in thread Preventing Browser Timeout

Just to add to that, you can also just print " "; .

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Re: Preventing Browser Timeout
by dws (Chancellor) on Apr 24, 2003 at 00:14 UTC
    Just to add to that, you can also just print " "; .

    Sure, you can do that. The benefit of HTML comments as heartbeats is that they can also serve as diagnostic information. E.g., you can print timestamps in them, so get some feel for where your long-running program is spending time, and whether the heartbeats are too far apart (which risks a browser timeout).

      True, I mentioned the alternative mainly so the poster would realize that it didn't have to be a comment.

      -Lee

      "To be civilized is to deny one's nature."