incubator-esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pollak" <feeder.of.the.be...@gmail.com>
Subject JavaScript funtime
Date Thu, 11 Dec 2008 01:28:44 GMT
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
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message