(); request.onreadystatechange (function(){ switch(request.readyState) { // case 0: // Uninitialized // case 1: // Loading // case 2: // Loaded // case 3: // Interactive case 4: // Complete if (request.status == 200) { alert("Success"); } else { alert("Error"); } break; } }); // Opens the connection with the server, the third // parameters informs whether the request is asynchronous. // This is the "A" of AJAX request.open("GET", "/users/search?name=Navarro" , true); // As it is a GET request, you aren't // sending anything on the request body request.send(null);
request.onreadystatechange (function(){ switch(request.readyState) { // case 0: // Uninitialized // case 1: // Loading // case 2: // Loaded // case 3: // Interactive case 4: // Complete if (request.status == 200) { alert("Success"); } else { alert("Error"); } break; } }); // Opens the connection with the server, the third // parameters informs whether the request is asynchronous. // This is the "A" of AJAX request.open("GET", "/users/search?name=Navarro" , true); // As it is a GET request, you aren't // sending anything on the request body request.send(null);
(); request.onreadystatechange(function(){ switch(request.readyState) { // case 0: // Uninitialized // case 1: // Loading // case 2: // Loaded // case 3: // Interactive case 4: // Complete if (request.status == 200) { alert("Success"); } else { alert("Error"); } break; } }); // Opens the connection with the server, the third // parameters informs whether the request is asynchronous. // This is the "A" of AJAX request.open("GET", "/users/search?name=Navarro" , true); // As it is a GET request, you aren't // sending anything on the request body request.send(null);
(); request.onreadystatechange (function(){ switch(request.readyState) { // case 0: // Uninitialized // case 1: // Loading // case 2: // Loaded // case 3: // Interactive case 4: // Complete if (request.status == 200) { alert("Success"); } else { alert("Error"); } break; } }); // Opens the connection with the server, the third // parameters informs whether the request is asynchronous. // This is the "A" of AJAX request.open("GET", "/users/search?name=Navarro", true); // As it is a GET request, you aren't // sending anything on the request body request.send(null);
(); request.onreadystatechange (function(){ switch(request.readyState) { // case 0: // Uninitialized // case 1: // Loading // case 2: // Loaded // case 3: // Interactive case 4: // Complete if (request.status == 200) { alert("Success"); } else { alert("Error"); } break; } }); // Opens the connection with the server, the third // parameters informs whether the request is asynchronous. // This is the "A" of AJAX request.open("GET", "/users/search?name=Navarro" , true); // As it is a GET request, you aren't // sending anything on the request body request.send(null);