Smooth update of information on jsp

hi all,

i'm developing the web app portion for a crowd management system. in a particular jsp page, i need to display information pertaining to the current crowd, hence it must be updated and reflected on the very page on real-time basis.

i know of an easy way; that is to set the meta-tag and let the refresh takes place automatically. however, my "fussy" client doesn't like the idea of that page gets flicker on every refresh. they prefer to view a "smooth" transition of information being updated.

any idea, guys?

thanks in advance!

[569 byte] By [weihza] at [2007-11-26 16:17:24]
# 1
hava you use gmail? gmail uses ajax as to update a portion of the page based on the new fetch records from the server without reloading the page
jgalacambraa at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi, thanks for your prompt reply!

yes i know ajax but didn't know it can be applied this way to solve my problem. well then, if ajax is the ultimate solution, is it correct to say that i should create another function to invoke it at certain time interval? (because the information has to be updated on real-time basis)

weihza at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
yup, it must like be a jobscheduler, but you must also make it stop, so the user can also controller it..
jgalacambraa at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
i see. actually and ultimately, i wish to develop it in such a way that the information can be updated as soon as the database receives new records. has this got to do with socket-programming then?
weihza at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
no, ajax can call a servlet or jsp that can use to perform server side codes which can fecth data for you, its like calling a web service
jgalacambraa at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
thanks pal!
weihza at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
no problemo
jgalacambraa at 2007-7-8 22:40:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...