Forum Moderators: open
var http;
function getEvent(eventID) {
if (navigator.appName == "Microsoft Internet Explorer") {
http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
http = new XMLHttpRequest();
}
if (http) {
http.open("get", "yourpage.php?event="+eventID);
http.onreadystatechange = handleResponse;
http.send(null);
}
}
function handleResponse() {
if (http.readyState == 4) {
var response = http.responseText;
if (response && response!= "")
document.getElementById("someContainer").innerHTML = response;
}}
Hope it helps. :)