________________________________
From: David Pollak [mailto:feeder.of...@gmail.com]
Sent: Thu 12/11/2008 02:28
To: esme...@incubator.apache.org
Subject: JavaScript funtime
Folks,
I've been working on migrating the Comet Actors to emit JavaScript rather
than HTML. Here's the output of the Tag Cloud Actor:
var esme_tags = {'Pork': 0.5, 'Elwood': 0.5, 'Meow': 0.5, 'Esme': 1.0,
'Ie Sucks': 1.0, 'Thanks': 0.5, 'Snork': 0.5, 'Cat Food': 0.5,
'Toads': 0.5}
;
var esme_words = {'hoo': 0.11111111, 'fooasdas': 0.11111111, 'doing':
0.11111111, 'ee': 0.11111111, 'cat': 0.22222222, 'like': 0.22222222,
'how': 0.22222222, 'foog': 0.22222222, 'eat': 0.44444445, 'ie':
0.44444445, 'hello': 1.0, 'i': 0.44444445, 'slot': 0.22222222, 'mush':
0.22222222, 'push': 0.22222222, 'you': 0.22222222, 'm': 0.11111111,
'sluce': 0.11111111, 'from': 0.11111111, 'meow': 0.11111111}
;
esme_display_tag_cloud();
Here's the output from the Timeline Actors:
var esme_user_timeline = [{'$lift_class': 'message', 'id': 52, 'text':
'<message><body>Hello 44</body>\u000a <tags></tags></message>',
'source': 'web', 'when': 1220488284616, 'conversation': 0, 'author':
1, 'replyto': 0, 'viagroup': 0}
, {'$lift_class': 'message', 'id': 51, 'text': '<message><body>Hello
43</body>\u000a <tags></tags></message>', 'source': 'web',
'when': 1220488269056, 'conversation': 0, 'author': 1, 'replyto': 0,
'viagroup': 0}
, {'$lift_class': 'message', 'id': 50, 'text': '<message><body>Hello
2</body>\u000a <tags></tags></message>', 'source': 'web',
'when': 1220488216783, 'conversation': 0, 'author': 1, 'replyto': 0,
'viagroup': 0}];
esme_display_user_timeline();
We need code that's going to translate the JSON objects to displayable
things. Who's up for writing such code?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net <http://liftweb.net/>
Collaborative Task Management http://much4.us <http://much4.us/>
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp