jQuery RSS/ATOM feed parser plugin
jfh 0d411f761c Updated builds. 7 years ago
build Updated builds. 7 years ago
jquery Updated jQuery to 1.6.4 and fixed syntax error. 7 years ago
src Fixed syntax error. 7 years ago
xml Added files from 1.0 8 years ago
GPL-license.txt Added files from 1.0 8 years ago
MIT-license.txt Added files from 1.0 8 years ago
Makefile Updated Makefile to comply with naming and svn to git migration. 7 years ago
README.mediawiki Cosmetic changes. 7 years ago
example-proxy.html Added files from 1.0 8 years ago
example.html Added files from 1.0 8 years ago
proxy.php Added files from 1.0 8 years ago
test-dist-packed.html Added files from 1.0 8 years ago
test-dist.html Added files from 1.0 8 years ago
test-src.html Added files from 1.0 8 years ago

README.mediawiki

'''jFeed: jQuery feed parser plugin'''

Copyright (C) 2007-2011 Jean-François Hovinne - http://hovinne.com/<br />
Dual licensed under the MIT (MIT-license.txt) and GPL (GPL-license.txt) licenses.

== Usage ==

<pre lang="javascript">jQuery.getFeed(options);</pre>

'''Options:'''
* <code>url</code>: the feed URL (required)
* <code>data</code>: data to be sent to the server. See [http://api.jquery.com/jQuery.ajax/ <code>jQuery.ajax</code>] data property
* <code>success</code>: a function to be called if the request succeeds. The function gets passed one argument: the <code>JFeed</code> object

'''Example:'''
<pre lang="javascript">
jQuery.getFeed({
url: 'rss.xml',
success: function(feed) {
alert(feed.title);
}
});
</pre>

== JFeed properties ==

* <code>feed.type</code>
* <code>feed.version</code>
* <code>feed.title</code>
* <code>feed.link</code>
* <code>feed.description</code>
* <code>feed.language</code>
* <code>feed.updated</code>
* <code>feed.items:</code> an array of JFeedItem

== JFeedItem properties ==

* <code>item.title</code>
* <code>item.link</code>
* <code>item.description</code>
* <code>item.updated</code>
* <code>item.id</code>

Please see the provided examples for more information.

A basic PHP proxy is also available (<code>proxy.php</code>), if you need to load external
feeds (for testing purposes only, do not use it on public websites).