forked from jfhovinne/jFeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-src.html
49 lines (41 loc) · 1.47 KB
/
test-src.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jFeed - jQuery feed parser plugin - test</title>
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="src/jfeed.js"></script>
<script type="text/javascript" src="src/jfeeditem.js"></script>
<script type="text/javascript" src="src/jactivitystream.js"></script>
<script type="text/javascript" src="src/jatom.js"></script>
<script type="text/javascript" src="src/jrss.js"></script>
<script type="text/javascript">
jQuery(function() {
var feedsUrls = ['xml/rss-091.xml',
'xml/rss-092.xml',
'xml/rss-10.xml',
'xml/rss-20.xml',
'xml/atom.xml',
'xml/activitystream.xml',
'xml/georss.xml'];
jQuery().ajaxError(function(request, settings, ex) {
console.log('Request error');
for(var i in ex) {
console.log(i + ': ' + ex[i]);
}
});
for(var i = 0; i < feedsUrls.length; i++) {
jQuery.getFeed({url: feedsUrls[i], success: function(feed) {
console.log(JSON.stringify(feed));
}
});
}
});
</script>
</head>
<body>
<h1>jFeed - jQuery feed parser plugin - test</h1>
<p>Please open Firefox + Firebug console</p>
</body>
</html>