aboutsummaryrefslogtreecommitdiff
path: root/assets/js/list.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/list.js')
-rw-r--r--assets/js/list.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/js/list.js b/assets/js/list.js
new file mode 100644
index 0000000..3a58971
--- /dev/null
+++ b/assets/js/list.js
@@ -0,0 +1,11 @@
1function clickSearchResult(resId) {
2 var xhr = new XMLHttpRequest();
3 xhr.onreadystatechange = function() {
4 if (xhr.readyState == XMLHttpRequest.DONE) {
5 alert(xhr.status + ": " + xhr.response);
6 }
7 }
8 xhr.open('POST', window.location, true);
9 xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
10 xhr.send('id=' + resId);
11} \ No newline at end of file