Helma logo
helma.org » Home > Stories > res.push()

res.push()

Pushes a string buffer on the response object.

This function "pushes" a string buffer on the response object to which all response output will be redirected until res.pop() is called to retrieve the generated string.

Note that more than one string buffers can be pushed on the response object, and output always goes to the last one.

Syntax
res.push()

Example
res.push();
res.write("foo");
res.encode('.');
res.write("bar");
var str = res.pop()
// str is "foo.bar"


... comment


Page last modified on 2003-11-14 16:30 by rist