Posted by d on 01/23/06 03:17
"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.
Navigation:
[Reply to this message]
|