That's true, good point.
Maybe I should get the JS code to monitor partial outputs. Is that
possible at all?


On Sep 23, 12:09 pm, "Richard D. Worth" <[email protected]> wrote:
> All your callbacks are being called at the end, in quick succession, after
> the whole response comes in. You can see this by setting your breakpoint on
> line 13 and then looking at the Net tab. Your breakpoint is stretching those
> few milliseconds into lots of seconds.
> - Richard
>
> On Wed, Sep 23, 2009 at 10:52 AM, Otavio Ferreira <[email protected]
>
> > wrote:
>
> > Thank you for replying.
> > I haven't managed to get it working though.
>
> > Would you please have a look at this live demo?
> >http://www.fullsemanticweb.com/test/pbar/
>
> > Now you have access to the HTML and JS source-code via Firebug.
>
> > If you just click on "Load", the progressbar will fill out completely
> > after a couple of seconds. Note that no visual progress is shown
> > before 100%. However, if you put a breakpoint in the JS code at line
> > 13 via Firebug, you will be able to see the actual progress flow right
> > after clicking on "Continue" on Firebug. The progressbar now refreshes
> > at 0%, 25%, 50%, 75%, and 100%.
>
> > The following line is the one to be affected by the breakpoint. You
> > can find it inline the HTML landing page:
> > $("#pbar").progressbar("value", data.percent);
>
> > Why does it only work when the breakpoint is set?
>
> > On Sep 22, 10:00 am, "Richard D. Worth" <[email protected]> wrote:
> > > You need to give your processing a break now and then to allow the
> > browser
> > > to redraw.
> > > - Richard
>
> > > On Mon, Sep 21, 2009 at 11:38 AM, Otavio Ferreira <
> > [email protected]
>
> > > > wrote:
>
> > > > I have been trying to use the progressbar plugin, but have had no
> > > > success so far. The problem is that it would not refresh the current
> > > > percent while the heavy back-end process is still running, only when
> > > > it reaches 100%. It means the progressbar goes from 0% to 100% without
> > > > displaying values in between (25%, 50%, etc). Maybe I am missing some
> > > > sort of flush method.
>
> > > > The back-end process is triggered by an AJAX call via MPAJAX plugin. I
> > > > had to make use of multipart response messages in order to get each
> > > > percent update individually. Otherwise, it seems that the AJAX handler
> > > > groups all updates in a buffer, then release them all together.
>
> > > > References:
> > > > Progressbar Plugin:http://jqueryui.com/demos/progressbar/
> > > > MPAX Plugin:http://plugins.jquery.com/project/mpAjax
>
> > > > You can also find my tiny source-code athttp://pastie.org/624640--
> > > > This is just a proof of concept. Please have a look at the progressbar
> > > > update at line 13, and the AJAX call at line 19. Am I doing something
> > > > wrong?
>
> > > > Thank you very much 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