Hi,
I am completely new to jQuery and Ajax, and I am trying to get a basic Ajax call to
work with a simple HTML file called test.html. In my JavaScript function I make the
following call:
$.ajax({
url: "test.html",
cache: false
success: function (html) {
$("#text").append(html);
},
failure: function(){
alert("Error");
}
})
However, when the function is called, there is no evidence that the Ajax call is being
made, because if it were a success, it would display the html file and if it were a failure
there would be an alert window. Why might this be the case? I'm sorry if this seems pretty
daft; I'm entirely new to this sort of work. Thanks.