Offset Handling in jquery.rss

泄露秘密 提交于 2019-12-25 04:37:12

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/36248203/offset-handling-in-jquery-rss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!