alert doesnt show
Posted: Fri Mar 16, 2007 11:51 am
Hi there...I have this code to implement AJAX communication.It works perfectly.
My issue is that when i add just above this code the alert doesnt show
Any ideas why that would happen?
Code: Select all
function makeRequest(id_wanted){
var url = "http://www.mysite.gr/areadata.xml";
var http_request = getHTTPObject();
http_request.open("GET", url, true);
http_request.onreadystatechange = function() {
if(http_request.readyState == 4) {
if(http_request.status == 200){
GetArea(http_request,id_wanted);
}
}
}
http_request.send(null);Code: Select all
GetArea(http_request,id_wanted);Code: Select all
alert("Something to say here");Any ideas why that would happen?