Posted by Jay on 01/23/06 12:45
that's probably the trick ...
read about it elsewhere as well .... will give it a go thanks
"d" <d@example.com> wrote in message
news:B8WAf.6181$wl.2471@text.news.blueyonder.co.uk...
> "Jay" <oiuoiu@oiuoiu.com> wrote in message
> news:OOUAf.110026$6K2.81878@edtnps90...
>> Hello!
>> I have a script that I want to output to the screen (browser) in 2 parts:
>> 1st part works fast (query of datbase and ouput to screen)
>> 2nd part performs a javascript action which takes time.
>>
>> Is it possible to first output to screen the 1st part of the code (this
>> way user has some information to look at)
>> then ... perform the javascript?
>>
>> I've tried:
>> flush();
>> ob_flush();
>> http://us2.php.net/manual/en/function.ob-flush.php
>>
>>
>> Anyone have any success with this?
>
> Yup - it's done exactly as you would imagine it. flush() takes care of
> it. You must remember, though, that IE will not display anything unless
> the flushed data is over a certain length, so you might want to output
> some comments in your HTML to bulk up the size.
>
[Back to original message]
|