JSJaC
JSJaC is a jabber/XMPP client library written in JavaScript to ease implementation of web based jabber/XMPP clients. For communication with a jabber server it needs to support either HTTP Pollingor XMPP Over BOSH(formerly known as HTTP Binding). JSJaC has an object oriented design which should be quite easy to use. Communication is done by using the XML HTTP Request objectalso refered to as AJAX technology. Your browser must support this.
Related javascript Articles
JSJaC: JavaScript Jabber Client Library
JSJaC is a JavaScript Jabber Client Librarythat was built "to ease implementation of web based jabber clients. For communication with a jabber server it needs to support either HTTP Pollingor HTTP Binding."
To use the library you can check out examplesto see how you can do things like send a message:
if (aForm.msg.value== ''|| aForm. sendTo.value== '')
return false;
if (aForm.sendTo.value.indexOf('@')== - 1)
aForm. sendTo.value+= '@'+ con. domain;
try {
varaMsg = newJSJaCMessage ();
aMsg. setTo(newJSJaCJID (aForm.sendTo.value));
aMsg. setBody(aForm.msg.value);
con. send(aMsg);
aForm. msg.value= '';
return false;
} catch (e) {
html = "<div class='msg error''>Error: "+e.message+"</div>";
document. getElementById('iResp').innerHTML+= html;
document. getElementById('iResp').lastChild.scrollIntoView();
return false;
}
}
or handle presence:
varhtml = '<div class="msg">';
if (!aJSJaCPacket.getType()&& !aJSJaCPacket. getShow())
html += '<b>'+aJSJaCPacket.getFromJID()+' has become available.</b>';
else {
html += '<b>'+aJSJaCPacket.getFromJID()+' has set his presence to ';
if (aJSJaCPacket.getType())
html += aJSJaCPacket. getType()+ '.</b>';
else
html += aJSJaCPacket. getShow()+ '.';
if (aJSJaCPacket.getStatus())
html += ' ('+aJSJaCPacket.getStatus().htmlEnc()+')';
}
html += '</div>';
document. getElementById('iResp').innerHTML+= html;
document. getElementById('iResp').lastChild.scrollIntoView();
}
Since Jabber (XMPP) is taking over the world, it may be a nice tool in the toolbox.
What is XSTM?
XSTM is a n open sourcelibrary which enables high performance object replication between processes. It is an object oriented Distributed Shared Memory, or a Distributed Object Cache.
XSTMhas similarities with technologies like Adobe Flex Data Services , JBoss Cache, Terracotta, Tangosol Coherence , ScaleOut , or IBM's ObjectGrid .
Our model is based on object shares, which work like file shares. When an object is added to a share, it appears on the other machines which have the same share opened. Modifications done to the fields of the object are from this point replicated between machines.
Read more in the project overview.
XSTMis made of three projects. The Java implementation is called JSTMand is the base from which
the other versions are derived. An adapted version made with Luciano, the
author of GWM , is available for GWT . It allowsthis library to be used in a browser. NSTM is a .NET port based on IKVM.
All implementations are compatible with each other so object replication can take
place e.g. between a Java server and a .NET Smart Client.
Google Web Toolkit (GWT) is an open source Java software development framework that makes writing AJAX applications like Google Mapsand Gmaileasy for developers who don't speak browser quirks as a second language. Writing dynamic web applications today is a tedious and error-prone process; you spend 90% of your time working around subtle incompatibilities between web browsers and platforms, and JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile.
GWT lets you avoid many of these headaches while offering your users the same dynamic, standards-compliant experience. You write your front end in the Javaprogramming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML.
Django’s template language is designed to strike a balance between power and ease. It’s designed to feel comfortable to those used to working with HTML. If you have any exposure to other text-based template languages, such as Smartyor CheetahTemplate, you should feel right at home with Django’s templates.
Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.
Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.



