Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function on_login_click()
- {var connection = new Strophe.Connection("http://localhost:7070/http-bind/");
- user = $("#username").val();
- var pass = $("#password").val();
- connection.connect(user, pass, on_connect_event);
- }
- function on_connect_event(){
- if (status == Strophe.Status.CONNECTED){
- $("#messageBox").append("Connected<br>");
- } else {
- $("#messageBox").append("Not Connected<br>");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement