开发者

How do you auto refresh an HTML table every few seconds?

Is there a way to auto refresh an HTML table inside a DIV tag every few seconds 开发者_如何学运维without refreshing the whole page?


There are more than one ways to achieve this. Easiest thing that comes to mind is have a Javascript timer run every few seconds to make an AJAX call to refresh the DIV tag enclosing the table.

Here is some info on Javascript timing functions

http://www.w3schools.com/js/js_timing.asp


You can choose some javascript frameworks thats already use Ajax to do it. For example Extjs libraty. In this library you will need to invoke method of the store

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜