How to force IE to display partial data received

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

How to force IE to display partial data received

Post 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
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

You mean phpdoc shows partial results at intervals of time in IE ?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post 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.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
Post Reply