diff options
Diffstat (limited to 'assets/js/list.js')
-rw-r--r-- | assets/js/list.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/assets/js/list.js b/assets/js/list.js deleted file mode 100644 index 25ff80d..0000000 --- a/assets/js/list.js +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | function clickSearchResult(resId) { | ||
2 | var xhr = new XMLHttpRequest(); | ||
3 | xhr.onreadystatechange = function() { | ||
4 | if (xhr.readyState == XMLHttpRequest.DONE) { | ||
5 | if (xhr.status !== 200) { | ||
6 | alert(xhr.status + ": " + xhr.response); | ||
7 | return; | ||
8 | } | ||
9 | |||
10 | data = xhr.responseText; | ||
11 | document.getElementById("gril-list").innerHTML += data; | ||
12 | } | ||
13 | } | ||
14 | xhr.open('POST', window.location, true); | ||
15 | xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | ||
16 | xhr.send('id=' + resId); | ||
17 | } \ No newline at end of file | ||