Page 1 of 1
How to force IE to display partial data received
Posted: Sat Jun 04, 2005 5:27 am
by anjanesh
I understand flush() and ob_flush() will send the partial data to the browser and it all depends on the browser to display.
Anyway to force IE to display as and when partial data arrives - like FF.
This is going to be a headache for IE users - even though IE doesnt always follow rules, most end-users use IE and I have to get this to work - even if its in some twisted manner.
I did an echo str_repeat(' ',256); before every flush() but still no effect in IE - appears all at once at the last
Thanks
Posted: Wed Jun 08, 2005 5:34 am
by malcolmboston
i also tested this the other day and got the same results...
however i was using phpdocumentator the other day and when processing the files it was listing what it was doing in real-time meaning that they got flush working somehow...
any ideas people?
Posted: Wed Jun 08, 2005 5:46 am
by anjanesh
You mean phpdoc shows partial results at intervals of time in IE ?
Posted: Wed Jun 08, 2005 7:29 am
by Roja
This will sound counter-intuitive, but my experience shows that if you use output buffering, and flush the ob at spaced intervals, you can get IE to act similarly to FF.
However, FF does rendering entirely different from IE, so it won't be 100% the same - and you can't work around that. Its the way their rendering engine works.
Also, IE in quirks mode will generally be less forgiving about doing reflows, so make sure you have a *complete* doctype (including url) so you are in strict mode.
Posted: Wed Jun 08, 2005 8:18 am
by Syranide
IE requires (if I'm not mistaken) 512bytes before it does anything at all... then it only once the table is complete and so on...
however, be aware of that flush doesn't work on all servers as expected... also, this beviour is not to be trusted.
Posted: Wed Jun 08, 2005 10:15 am
by malcolmboston
Syranide wrote:IE requires (if I'm not mistaken) 512bytes before it does anything at all... then it only once the table is complete and so on...
not true, ive tried this and it is dodgy at best
Posted: Sun Jun 19, 2005 12:40 am
by anjanesh
Anyone knows how windowsupdate.microsoft.com displays its progress status correctly ?
It shows 1%,2%..99% during update on the same page.
It may be using IFRAMEs but I dont know how to get this working in IE IFRAMEs either.