Topic: FLUSH FOR XAJAX !!

Hi,


I have a new ideia for a feature for xajax, this feature is a similar operation like "flush" of php, but when you call the method FLUSH of xajax all the process added into the object XAJAX is launched for the client browser. For Example:

function Test() {

    $objResponse = new xajaxResponse('ISO-8859-1');

    $objResponse->assign('div1', 'innerHTML', 'loading...');
    $objResponse->flush();

    //when call flush, the assign is launched for the client browser, but not finish the function

    $objResponse->alert('Message 1.');
    $objResponse->alert('Message 2.');
    $objResponse->flush();

    //when call flush, the alerts is showed for the client browser, but not finish the function

    $objResponse->assign('div1', 'innerHTML', 'finishing...');
    $objResponse->flush();

    //when call flush, the assign is launched for the client browser, but not finish the function

    return $objResponse;
   
    //now the function finish
   
}

Re: FLUSH FOR XAJAX !!

Not as easy as it sounds smile
We're talking about using xajax for Comet (which is kinda where you're going) in this thread
I like the simplicity of $objResponse->flush(); tho.... smile