开发者

How can I auto-update a news feed with javascript without refreshing the whole page?

How can I automatically update just the news feed of my site without updating the whole of it every 10 seconds?? I am creating a php code that pull information from an rss feed but I don开发者_如何学C't want the user to keep having to refresh the page.

I'm not sure what else to add, Thanks, Cameron


If you use jquery you may be interested in the load method, with a interval set correctly it could refresh your div/whatever every 10s ...


If you want to update the content of your website routinely without user refreshing the page, you could exploit polling with AJAX.

For more details pls visit here.


You can set a time interval while pulling the rss feeds.

See some related questions:

  • auto-refreshing div with jquery
  • Parse RSS with jQuery
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜