[jQuery] Re: Realtime ajax response

2009-08-26 Thread Josip Lazic
On 25 kol, 11:31, bram wrote: > A more 'ajax approach' would be to resize your images individually as > they are requested by the browser. ie: get rid of the loop in php and > apply it in html/js. That is not an option, for more than one reason :) OK, is there a way to get semi realtime respons

[jQuery] Re: Realtime ajax response

2009-08-25 Thread bram
> ob_start(); > foreach ($foo as $bar) { > resizeImage(); > echo "Resizing image  $bar"; > ob_flush; > flush(); > > } > > This way user will get response everytime image get resized. Can I > achive this with ajax and div? A more 'ajax approach' would be to resize your images individually as they

[jQuery] Re: Realtime ajax response

2009-08-24 Thread Josip Lazic
On 24 kol, 15:22, Michael Lawson wrote: > http://sourceforge.net/projects/easyshoutbox/files/easyshoutbox/Easy_... I don't think this is solution for my problem. After form is submited server must copy&resize some pictures. Sometimes it'll last several seconds, but sometimes much longer, so I w

[jQuery] Re: Realtime ajax response

2009-08-24 Thread Michael Lawson
Unless I'm mistaken in my understanding of your issue, this is kind of what AJAX was really meant for. You can certainly post something, and then do a get on whatever it was you posted to to get a response. You might want to take a polling approach where you set a javascript timer or timeout to