刷新 Struts2 中选项卡式面板的内容
我有一个
关于 Struts2 中选项卡式面板的问题。
如果我有几个面板,并且我希望选项卡上的内容每五秒更新一次,我该怎么做?
另外,我只希望当前正在查看的选项卡以给定的时间间隔更新。其他选项卡应在选择时更新,然后继续每五秒更新一次,直到用户选择另一个选项卡。
谁能建议一种允许我做这些事情的方法?
谢谢,
亚历克斯
All,
I have a question regarding Tabbed Panel in Struts2.
If I have a few panels and I want the content on a tab to be updated every five seconds would how would I do this?
Also, I only want the tab which is currently being viewed to update at the given interval. The other tabs should update when selected and then continue t be updated every five seconds until the user selects another.
Can anyone suggest an approach which allow me to do these things?
Thanks,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Stack Overflow 有着悠久的传统,所有 Javascript 问题都可以通过 jQuery 解决。
这是一个类似的问题,使用 div 而不是选项卡
Auto-refreshing div with jQuery - setTimeout or another方法?
There is a long running tradition in Stack Overflow where all Javascript problems can be solved with jQuery.
Here is a similar question with a div instead of a tab
Auto-refreshing div with jQuery - setTimeout or another method?