http://qkpm2ov2rjhjkhfsftskqho77uj5rewd5y44unkf6cb7tdhaxwcvh2id.onion/books/html/chat-app.txt
//Load the file containing the chat log
function loadLog(){
$.ajax({
url: "log.html",
cache: false,
success: function(html){
$("#chatbox").html(html); //Insert chat log into the #chatbox div
},
});
}
We wrap our AJAX request inside a function. You will see why in a second. As you see above, we will only use three of the jQuery AJAX request objects.
url: A string of the URL to request. We will use our chat log's filename of log.html.