开发者

Get articles through RSS from Wordpress with JavaScript

Is there a way to get recent articles using JavaScript from Wordpress blog? I need to show some content from the blog easy way on a static page so开发者_如何转开发 I think JavaScript would be fine for this.


If you are in different domain, you cannot do this with pure javascript. You will need to use serverside proxy (for example, PHP proxy - a file which will take URL, do request and return data). After you got data, just use jQuery ability to parse XML files and write your HTML.

Parse RSS with jQuery

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜