summaryrefslogtreecommitdiffabout
path: root/content
authorMichael Krelin <hacker@klever.net>2011-08-28 16:23:16 (UTC)
committer Michael Krelin <hacker@klever.net>2011-08-28 16:23:16 (UTC)
commit63b7d8b9cd7b4c4fd010a46bb2737a47d5afa65e (patch) (unidiff)
tree3533952c3632c34b25c399c2d9b6cf586d1cd4b0 /content
parente58247a43552504e34ae31a5262a8a9dd338243c (diff)
downloadfireflix-63b7d8b9cd7b4c4fd010a46bb2737a47d5afa65e.zip
fireflix-63b7d8b9cd7b4c4fd010a46bb2737a47d5afa65e.tar.gz
fireflix-63b7d8b9cd7b4c4fd010a46bb2737a47d5afa65e.tar.bz2
more jsonification (is this code ever used?)
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'content') (more/less context) (ignore whitespace changes)
-rw-r--r--content/fireflix.js18
1 files changed, 6 insertions, 12 deletions
diff --git a/content/fireflix.js b/content/fireflix.js
index d70ab4d..34cfd3e 100644
--- a/content/fireflix.js
+++ b/content/fireflix.js
@@ -235,4 +235,4 @@ var fireflix = {
235 var lb = document.getElementById('tagslist'); 235 var lb = document.getElementById('tagslist');
236 var _this = this; 236 var that = this;
237 this.flickr.api_call( 237 this.flickr.api_call_json(
238 { 238 {
@@ -240,13 +240,7 @@ var fireflix = {
240 auth_token: 'default', 240 auth_token: 'default',
241 }, function(xr) { 241 }, function(x,j) {
242 var x = xr.responseXML; 242 var tt = j.who.tags.tag;
243 var xp = x.evaluate( 243 for(var i in tt) lb.appendItem(tt[i]._content);
244 '/rsp/who/tags/tag', x, null,
245 XPathResult.ORDERED_NODE_ITERATOR_TYPE, null );
246 // TODO: clear list
247 var n; while(n=xp.iterateNext()) {
248 lb.appendItem(n.firstChild.nodeValue);
249 }
250 }, function(x,s,c,m) { 244 }, function(x,s,c,m) {
251 _this.flickr_failure(x,s,c,m); 245 that.flickr_failure(x,s,c,m);
252 } 246 }