ChatServer/pages/js/conversations.js

11 lines
385 B
JavaScript
Raw Normal View History

2016-08-17 12:31:29 +00:00
function addConversation() {
var json = JSON.stringify({ "action": "add" });
$.ajax({
url: "/conversations", data: json, method: "POST", success: function (result) {
document.getElementById("conversations").innerHTML += result;
}, error: function (result) {
showError(result.responseText);
}
});
return false;
}