<form id='cred' name='cred'>
<label for='jid'>JID:</label>
<input type='text' id='jid' />
+ <br />
<label for='pass'>Password:</label>
<input type='password' id='pass' />
<input type='submit' id='connect' value='connect' />
+var DEBUG = false;
+var BOSH_SERVICE = 'http://localhost:5280/http-bind/';
+
var NS_VCARD = 'vcard-temp';
var NS_CAPS= 'http://jabber.org/protocol/caps';
var NS_PEP = 'http://jabber.org/protocol/pubsub#event';
var NS_TUNE = 'http://jabber.org/protocol/tune';
-var BOSH_SERVICE = 'http://localhost:5280/http-bind/';
var localJID = null;
var connection = null;
var initialPresence = $pres().c('show').t('online').up().c('status').t('Hy, I am an socialXMPP instance').up().c('priority').t('1').up().c('c', {xmlns: NS_CAPS, hash: 'sha-1', node: 'http://jabber.babelmonkeys.de', ver: genCaps()}).up();
connection.send(initialPresence.tree());
- $('#friends').show();
+ $('#friends').css('display', 'table');
return false;
}
}
$(document).ready(function () {
+ if (DEBUG) {
+ $('#log_container').show();
+ }
connection = new Strophe.Connection(BOSH_SERVICE);
connection.rawInput = rawInput;
connection.rawOutput = rawOutput;