How can a servlet automatically updated by its data without refreshing?
By ikaustubhl
@ikaustubhl (34)
India
April 29, 2007 9:15pm CST
Take one example of one sensex site. the corresponding data are shown in a scrolling manner. how they can automatically be refreshed after some time. without refreshing the page.?
If i am thinking in the right direction u want to only update a portion of the page not the entire page.
The entire page mechanism is easy using javascript autorefresh
setTimeout("window.location.reload()",1000)
Enter this script in the head portion of the html page in script tags
But the best solution is to use AJAX. If you are using gmail or meebo u would understand what it is all about.
more comments are welcome!!!
2 responses