Here's how it works :

   1. Javascript code uses XmlHttpRequest API to start an AJAX call.
   2. Browser intercepts XmlHttpRequest method invocation
   3. Browser makes a http connection to the server in a *separate thread*.
   This way, the main user interface thread is not blocked.
   4. When the http response is available, the browser invokes the AJAX
   callback as part of the main user interface thread.

Key takeaways -

   - There is no polling or IP based tracking.
   - The underlying HTTP call is always synchronous.
   - The browser invokes the callback only when the response is available,
   which is why we say "AJAX is asynchronous"

--Sri


On 26 February 2011 22:59, dreamer <[email protected]> wrote:

> Thanks Jeff.these are programming details. But how AJAX is
> implemented, like is it polling or true call back, using peer to peer
> techniques, such details
> not available.
>
> On Feb 26, 9:14 am, Jeff Schwartz <[email protected]> wrote:
> > I googled & found the following:
> >
> > Ajax intro:http://www.javalobby.org/articles/ajax/
> >
> > Google RPC doc:
> http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
> >
> > On Sat, Feb 26, 2011 at 12:01 PM, dreamer <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > True. Not found this kind of details. May be some gwt contributor
> > > should be having  good Idea about these.
> >
> > > On Feb 25, 6:53 am, Jeff Schwartz <[email protected]> wrote:
> > > > RPC uses Ajax so understanding how Ajax works will answer all your
> > > > questions.
> >
> > > > On Fri, Feb 25, 2011 at 9:49 AM, dreamer <
> [email protected]
> > > >wrote:
> >
> > > > > Hi,
> >
> > > > > Not sure how the AsyncCallback works in GWT. Could somebody share
> > > > > please?
> >
> > > > > 1) Will it create a thread and polls the server ?
> > > > >         or
> > > > > 2) Will servers register's client IP and when result is available
> > > > > makes a fresh TCP/IP connection to client
> > > > >    and calls client.
> >
> > > > >    Within this call back, will server calls a method on skeleton
> > > > > (server side stubs) for remote call ?
> > > > >       or
> > > > >    It just makes a tcp call and client handles calling the Async
> > > > > method ?
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" 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/google-web-toolkit?hl=en.
> >
> > > > --
> > > > *Jeff Schwartz*
> > >http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw.
> ..
> > > > follow me on twitter: @jefftschwartz
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" 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/google-web-toolkit?hl=en.
> >
> > --
> > *Jeff Schwartz*
> http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
> > follow me on twitter: @jefftschwartz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" 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/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to