FW: JavaScript funtime

0 views
Skip to first unread message

Hirsch, Richard

unread,
Dec 10, 2008, 10:53:57 PM12/10/08
to esme...@googlegroups.com
I'm forwarding this to the Google Dev group, so those who are still not on the apache mailing list will become aware of it.

Please do not respond to this message but respond on the apache list.

Thanks.

D.

________________________________

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


Mrinal Wadhwa

unread,
Dec 11, 2008, 1:52:26 AM12/11/08
to esme...@googlegroups.com
I've been traveling over the last 10 days or so and haven't had time to join the new lists ... I just joined them though .. once I'm back, I can take up the below task .. its great that we'll now have a clear separation of the html/js (view) code .. makes things so much more flexible on the client side .. Thanks David.

Cheers,
Mrinal  
Reply all
Reply to author
Forward
0 new messages