Greetings,
I'm trying to make a simple feedback report on a php script that takes
a while to be executed. The php script goes through several photos and
makes multiple thumbnails and watermarks the original for each photo.

So for every photo that is done i want to make the progressbar refresh
with a new value.

With my original script i didn't have any luck. All the jquery ui
elements were refreshed only on the end of php script execution. So i
made a small dummy php script to test it with sleep().

sleep(5);
echo '<script type="text/javascript">$("#progressbar").progressbar
( {value:50} );</script>';
//Also tried the above while wrapped in $(function() { } just in case
flush();
sleep(5);

But same thing happens. While if i replace the javascript echo with a
simple echo 'a'. It works fine, so it's not server side problem with
flush.

It seems like that the problem resides on the $(function() { that is
not executed when called but takes some time or waits for the page
loading to complete. I'm not saying it's a bug, it's meant to be
designed that way, but it would be cool if there was a method that
forced the immediate execution of that like redraw or something
related.

Is there a solution?

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to