Location: PHPKode > projects > HypatiaDB > hypatiadb/js/rex.php
<?php header("Content-Type: text/javascript");
include('../common_db.php');
include('../functions.php');
dbconnect($host, $username, $password);
?>
var rexReq;

function deleteFromServer(e) {
	rexReq = new XMLHttpRequest();
	rexReq.onreadystatechange = rexCallback;
	rexReq.open("GET", "xhr/deleteTempFile.php?name=" + e);
	rexReq.send('');
}

function rexCallback() {
	if(rexReq.readyState == 4) {
		if(rexReq.status == 200) {
			document.getElementById('dela').style.display = "none";
		} else {
			alert(rexReq.status);
		}
	}
}
Return current item: HypatiaDB