Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function on_login_click()
  2.     {var connection = new Strophe.Connection("http://localhost:7070/http-bind/");
  3.     user = $("#username").val();
  4.     var pass = $("#password").val();
  5.     connection.connect(user, pass, on_connect_event);
  6. }
  7.  
  8. function on_connect_event(){
  9.     if (status == Strophe.Status.CONNECTED){
  10.         $("#messageBox").append("Connected<br>");
  11.     } else {
  12.         $("#messageBox").append("Not Connected<br>");
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement