如何将RSS提要拉入jQuery选项卡? [英] How do I pull rss feeds into jQuery tabs?

查看:90
本文介绍了如何将RSS提要拉入jQuery选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用jQuery在我的网站上设置一些选项卡式内容,并且希望这些选项卡从该网站的另一部分提取rss提要.不过,它仍然是同一站点.这可能吗?

I want to set up some tabbed content on my site using jQuery and I want the tabs to pull the rss feeds from another part of the site. It's still the same site, though. Is this possible?

推荐答案

如果XML文档与您的文档位于相同域中,则可以使用

If the XML documents are on the same domain as your document it can be done with jQuery.ajax() calls, or you can use jQuery plugins to fetch and parse data with jQuery RSS plugins.

如果它们位于不同域中,则可以使用 Yahoo Pipes 进行转换远程XML到JSONP的响应,将在所有浏览器上运行,或者您可以使用跨源资源共享(跨域AJAX)和新的.

If they are on a different domain you can use Yahoo Pipes to transform the remote XMLs to JSONP response which will work with all browsers, or you can use Cross-Origin Resource Sharing (cross domain AJAX) with the new ones.

这篇关于如何将RSS提要拉入jQuery选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆