开发者

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

开发者 https://www.devze.com 2023-04-05 12:32 出处:网络
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 come

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

精彩评论

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

关注公众号