Skip to content

Instantly share code, notes, and snippets.

@whoahbot
Created April 21, 2009 06:18
Show Gist options
  • Select an option

  • Save whoahbot/98977 to your computer and use it in GitHub Desktop.

Select an option

Save whoahbot/98977 to your computer and use it in GitHub Desktop.
function doLogin(form) {
$('#log').html('');
try {
oArgs = new Object();
oArgs.httpbase = 'http://whoahbot.example.com/http-bind/';
oArgs.timerval = 2000;
con = new JSJaCHttpBindingConnection(oArgs);
setupCon(con);
oArgs = new Object();
oArgs.domain = 'example.com';
oArgs.username = $('#username').val();
oArgs.resource = 'jsjac_simpleclient';
oArgs.pass = $('#password').val();
oArgs.register = false;
con.connect(oArgs);
} catch (e) {
$('#log').append(e.toString());
} finally {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment