var BOSH_SERVICE = 'http://localhost:5280/http-bind/';
-
var show_log = false;
Strophe.addNamespace("ADHOC", "http://jabber.org/protocol/commands");
function displayResult(result) {
var status = $(result).find("command").attr("status");
- $("#output *").remove();
+ $("#output").empty();
$(result).find("command > *").each(function(index, e) {
if ($(e).is("note")) {
addNote("#output", $(e).text(), $(e).attr("type"));
});
} else {
input = $("<input type='button' value='Start over'/>").bind("click", function() {
- $('#output *').remove();
+ $('#output').empty();
sessionid = null;
cmdNode = null;
getCommandNodes();
pass.show();
jid.show();
$('label').show();
- $('#output *').remove();
+ $('#output').empty();
return false;
}
if (button.value == 'connect') {
showDisconnect();
- $('#log *').remove();
+ $('#log').empty();
connection.connect(localJID,
pass.get(0).value,
onConnect);