Callback for jquery.zrssfeed.min.js

爷,独闯天下 提交于 2019-12-13 01:05:04

问题


zrssfeed.min.js to parse my Yahoo Pipes feed.

I need to fetch data from the structure built by the the plugin (i mean Parsing) and then insert the fetched data into other DOM elements.

I need a callback function to the function call to jquery.zrssfeed.min.js so that fetch data from its structure would be at ease.

How do I call the callback function? I mean i want the syntax. Where do I insert the call to the function in here?

$(document).ready(function () {
  $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
    limit: 5
  });
});

回答1:


according to the documentation:

$(document).ready(function () {
  $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
    limit: 5
   }, 
   function (e) {
        // there you go
   }
  });
});

see source of this example-page for usage



来源:https://stackoverflow.com/questions/7802845/callback-for-jquery-zrssfeed-min-js

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