Update – May 18, 2011: Code updated to work on more browsers. I’ve tested this with the latest Chrome (Windows and OS X), Firefox 3.5.8 (Windows), Android 2.2 (DroidX), iPad2, as well as the latest Safari on OS X. I have not tested this with Internet Explorer and in fact it’s been confirmed by others that it doesn’t currently work with IE8 (it also won’t work with IE7 or 6). If you figure out the IE issue let me know in the comments below as I don’t have a computer right now running IE8. The version of JQuery I used was 1.6.1.
Update – May 29, 2011: I just tried the demo on Internet Explorer 9 and it worked.
Note: If you don’t want to install the Union Server you can run the client code in this article against the tryunion.com server (port 80) and you can skip down to the Final Step section below.
Final step – The last thing needed before we write code is to grab the latest version of OrbiterMicro which you can get here.
I’m now going to take the original tutorial code and changing it to work with JQuery and also adding a few minor things of my own (like a connect and disconnect button, etc.).
After you have read through the tutorial (recommended) you can then take the code I wrote below and test it out. Keep in mind that my code is set to localhost, you can of course test off of the tryunion.com server (port 80).
Union Platform - ChatDisconnected
You can test the code out here (connecting to tryunion.com):