Skip to content
This repository was archived by the owner on Sep 8, 2019. It is now read-only.

Commit 111e753

Browse files
committed
Test form for AJAX calls
1 parent 74957a9 commit 111e753

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

frontend/src/form.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<script type="text/javascript">
6+
function ajaxGet()
7+
{
8+
var xhttp = new XMLHttpRequest();
9+
xhttp.open("GET", "/users/", true);
10+
xhttp.send();
11+
console.log(1);
12+
}
13+
</script>
14+
</head>
15+
<body>
16+
<form name="databaseFrontend" onSubmit="JavaScript:ajaxGet()">
17+
<input name="ajaxGet" type="submit" value="Test"
18+
onClick="JavaScript:ajaxGet()">
19+
</form>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)