August 1999
Intermediate to advanced
1488 pages
72h 53m
English
flush()
The flush function is a top-level function that is not associated with any object. The JavaScript runtime buffers the HTML page it is constructing in memory, and then sends it to the client after 64KB has been obtained. The flush() method can be used to send this data on demand, which is useful when done before large database queries. Note this is not the same flush as the File.flush() method.
Note
The flush function updates the cookie file as part of the HTTP header. If you are using a client cookie to maintain the client object, you should make any changes to this object before calling the flush function.
Listing 8.90 uses the flush function to flush the buffer to the page after the initial ...
Read now
Unlock full access