i am developing an application in mootools.There is some code which sends request to server using Request class.
req = new Request({
async: false, method: 'post',
someEvent: function(currentChunk)
{ /* this event is fired everytime when server flushes the output using flush()*/ },
onSuccess: function(html) { responseProcessor(); },
onFailure: function() { alert('Page Loading Failed ....!!'); },
});
At the server side, it executes a PHP file where i am flushing output buffer using flush(). but at receiving end, there is onSuccess event which gives me whole responseData in one variable.
Is there any event which is fired after every single time server flushes the output buffer.?
The onSuccess callback passes the whole response as parameter. If you make an AJAX call, it returns as response all the stuff that would be rendered on the browser if you accessed that script directly. With mootools Request you can't show the progression of the output (there couldn't be events called after a flush). I don't know if there is a moo plugin that does something like this.
p.s. I know there's a jQuery plugin that could do something for you (Does PHP flush work with jQuerys ajax?)