jquery.rss中的偏移量处理 [英] Offset Handling in jquery.rss

查看:79
本文介绍了jquery.rss中的偏移量处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上添加RSS提要,在这里我首先加载5个条目,然后随着用户向下滚动页面(由于页面响应时间)而加载更多条目.

我正在使用jquery.rss( https://github.com/sdepold/jquery-rss),供RSS提要和航点在用户到达页面末尾时触发RSS重新加载( http://imakewebthings .com/waypoints/).

例如,我以为我可以使用jquery.rss offset(限制:5,offsetStart:5)来加载条目5-10,但我似乎没有正确使用它.

$("#rss-styled").rss("http://www.recruiter.com/feed/career.xml", {
limit: 5,
offsetStart: 5,
layoutTemplate: '<dl class="dl-horizontal">{entries}</dl>',
entryTemplate: '<dt><a href="{url}">{title}</a></dt><dd>{shortBodyPlain}   [{author}@{date}]</dd>'
}).show();    

这是我的jfiddle: http://jsfiddle.net/jhfrench/AFHfn/

有人知道我在做什么错吗?

解决方案

jquery-rss本身似乎存在问题,我在此处向开发人员提出了此问题,但到目前为止尚未听到任何声音

https://github.com/sdepold/jquery-rss/issues

I want to include a RSS-feed on my website, where I load 5 entries at first and later load more as the user scrolls down the page (due to page response times).

I am using jquery.rss (https://github.com/sdepold/jquery-rss) for the RSS-feed and waypoints to fire the RSS reload when the user reached the page end (http://imakewebthings.com/waypoints/).

I thought I could just use jquery.rss offset (limit:5, offsetStart: 5) to load entry 5-10 for example but I seem to not use it correctly.

$("#rss-styled").rss("http://www.recruiter.com/feed/career.xml", {
limit: 5,
offsetStart: 5,
layoutTemplate: '<dl class="dl-horizontal">{entries}</dl>',
entryTemplate: '<dt><a href="{url}">{title}</a></dt><dd>{shortBodyPlain}   [{author}@{date}]</dd>'
}).show();    

Here is my jfiddle: http://jsfiddle.net/jhfrench/AFHfn/

Does anybody know what I am doing wrong here?

解决方案

There appears to be an issue in jquery-rss itself, I have raised the issue here with the developer but not heard anything as of yet

https://github.com/sdepold/jquery-rss/issues

这篇关于jquery.rss中的偏移量处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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