Using jQuery to perform a GET request and using the resulting data
- by Filip Ekberg
I have a page, let's call it "callme.html" which only has this content:
abc
Now I want to fire the following:
$.get("callme.html", function (data) {
alert(data);
}, "text");
I am using jQuery 1.4.2 mini and the page is called but the alert is empty.
Any ideas why? I'd like the popup to contain abc
I've also tried the following
$.ajax({
url: "callme.html",
async: false,
success: function (data) {
alert(data);
}
});