You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. '''jFeed: jQuery feed parser plugin'''
  2. Copyright (C) 2007-2011 Jean-François Hovinne - http://hovinne.com/<br />
  3. Dual licensed under the MIT (MIT-license.txt) and GPL (GPL-license.txt) licenses.
  4. == Usage ==
  5. <pre lang="javascript">jQuery.getFeed(options);</pre>
  6. '''Options:'''
  7. * <code>url</code>: the feed URL (required)
  8. * <code>data</code>: data to be sent to the server. See [http://api.jquery.com/jQuery.ajax/ <code>jQuery.ajax</code>] data property
  9. * <code>success</code>: a function to be called if the request succeeds. The function gets passed one argument: the <code>JFeed</code> object
  10. '''Example:'''
  11. <pre lang="javascript">
  12. jQuery.getFeed({
  13. url: 'rss.xml',
  14. success: function(feed) {
  15. alert(feed.title);
  16. }
  17. });
  18. </pre>
  19. == JFeed properties ==
  20. * <code>feed.type</code>
  21. * <code>feed.version</code>
  22. * <code>feed.title</code>
  23. * <code>feed.link</code>
  24. * <code>feed.description</code>
  25. * <code>feed.language</code>
  26. * <code>feed.updated</code>
  27. * <code>feed.items:</code> an array of JFeedItem
  28. == JFeedItem properties ==
  29. * <code>item.title</code>
  30. * <code>item.link</code>
  31. * <code>item.description</code>
  32. * <code>item.updated</code>
  33. * <code>item.id</code>
  34. Please see the provided examples for more information.
  35. A basic PHP proxy is also available (<code>proxy.php</code>), if you need to load external
  36. feeds (for testing purposes only, do not use it on public websites).