Wish ServletResponse flushBuffer

tchart

Well-Known Member
Licensed User
Longtime User
I would like the flushBuffer method for ServletResponse in Server Handler to be exposed in jServer.

I have a long loading page being returned from my Handle sub to which I have added a modal loader div (with an animate loading icon).

If I write the loader to the response it doesn't show until the entire page is loaded.

If I write the the loader to the response followed by resp flushBuffer (via JavaObject) the loader displays before the rest of the page is loaded.

So can we please get flushBuffer method for ServletResponse exposed in jServer?

Just to clarify. This shows the loader;

resp.write(startHTML)
resp.write(loaderHTML)
resp.flushBuffer 'currently doing this through JavaObject as this method isnt exposed
resp.write(endHTML)

This doesn't show the loader;

resp.write(startHTML)
resp.write(loaderHTML)
resp.write(endHTML)
 
Last edited:
Top