aboutsummaryrefslogtreecommitdiff
path: root/assets/js/list.js
blob: 3a58971894902b6b10caba3c651fb788a1fef17d (plain)
1
2
3
4
5
6
7
8
9
10
11
function clickSearchResult(resId) {
	var xhr = new XMLHttpRequest();
	xhr.onreadystatechange = function() {
	if (xhr.readyState == XMLHttpRequest.DONE) {
			alert(xhr.status + ": " + xhr.response);
		}
	}
	xhr.open('POST', window.location, true);
	xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
	xhr.send('id=' + resId);
}