Re: Incremental Updates

Ryan Gahl
2007-02-15T18:03:40Z

Short of using comet (google for "cometd" for an explanation), this is
a
manual type of thing...

1. Initial request goes to server, server responds "starting step 1"
2. Client gets message, immediately sends another request to server, server
responds "still in step 1, dude, chill out..."
3. Client gets message, repeats calls until server says "alright already,
I''m done, here''s your damn data"

and you show nice message for each cycle... you can also implement a
progress bar if you want. But the bottom line is, with standard AJAX, you
need to program it yourself.

On 2/15/07, Neil Ravo (Manhatten Project)
<teammacromedia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> Hi,
>
> More a pure Ajax question that SAU, but is there a way you can
> increment status messages back to the client when calling a long
> running request? i.e. if I have a request which calls a remote page,
> which in turn sends back a message after each function has completed
> can you incrementally tell the client that "function 1 has
> finished" (while the system has moved on to step 2), "function 2
has
> finished" etc.  I know I can send back simple messages on a page
> complete via standard Ajax status calls but I was wondering if it was
> possible using headers or some other mechanism to incrementally tell
> the client what is going on.
>
> Cheers
>
> Neil
>
>
> >
>


--
Ryan Gahl
Application Development Consultant
Athena Group, Inc.
Inquire: 1-920-955-1457
Blog: http://www.someElement.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---