Forum OpenACS Development: Re: new post-it package
Roel Canicula wrote a private messaging package based on acs-messaging for a client of Solution Grove.
I can dig up the code and send you a copy if you're interested. I beleive this will handle the backend part for you.
But that's only half the battle. Devising a nice UI and how to present it to users is another.
However, if you have the luxury of time I would recommend that you look into COMET.
COMET is different from polling because it establishes a persistent connection between the browser and the server.
This is possible with OpenACS thanks to Gustaf's background delivery proc on the server side. On the browser side, you need to implement "page streaming". Gustaf may have already implemented this (and polling too) on his Ajax Chat app inside xowiki.
Examples of real world web apps that use the concept of COMET include Meebo (www.meebo.com) and Gtalk integration with Gmail.
Furthermore, to enhance UI, you might also want to look into
I agree "post it" isn't probably the best name choice but I don't like private messaging either, as private messaging is closer to what Torben posted than to my idea. let's see if we come with a better choice of name, however, it's just the name, as I think the main goals of the package are more or less clear in the above messages.
Comet seems a good idea, if not for the first version of the package, for the second. Thanks a lot for the links, I have started recently digging for ajax info and will surely bookmark those (although the second one's server seems to be down), again thanks ;)
I have also in mind to take a look to Gustaf's work with chat as it is the reference in ajax server-browser communication in OpenACS, I also think both packages will benefit from the other one.
And yes, I will gladly appreciate if you send me the code as it will probably give me more time to focus on UI.
This is also described in a recent article from the Ajaxian Blog