Monday, November 1, 2010

how to recognizing idle activity to fetch more data ?

Hello everyone,

How can Server talk to Client, silently in the background, without
user noticing ? to load more data ?
is this "COMET/Ajax Push" ?


or can we see it from the other end:
how can client notify server that user is idle, and time to fetch
data , data which user is probably going to access soon.

lets say you have a tree widget, which loads data asynchronously.
(could be any widget, lists (similar to google reader, or email's in
gmail)

in normal asynchronous fashion, everytime users click on a node, they
have to wait, for the child nodes to get populated with data coming
from server. user might continue playing around with some nodes to
find what they're looking for, but they have to wait for child nodes
to get populated.
(or in gmail's case, content of un-read email to get fetched).
one might want to fetch all data at once, but causes longer initial
wait time.

imagine, while user is reading an email, your app can silently fetch
the content of next 5 unread emails,
this has the benefit that, probably after user is done reading a new
email, might continue reading next, and instead of keeping him
waiting, you remain couple of steps ahead.


is there a way to detect "idle user activity", and use it as an
opportunity to fetch more data while user is inactive ? i've seen in
one of google-developer's video, that google does such thing to gather
usage information.

have you implemented this in GWT ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate