-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
48 lines (33 loc) · 985 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test Get</title>
<meta name="description" content="Test GET">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="API-tool.js"></script>
</head>
<body>
<script type="text/javascript">
// create an instance of the class with collection set to pill lib
/// var pill = new AdhObject("PillLib");
// print the schem for the pill lib class
//pill.GetLayout();
// set the desired fields
// pill.pillName = "Vitrum";
// pill.pillInfo = "Some Info";
// save the object
// pill.Save();
// create new object to retrive the pill that we just saved
var getPill = new AdhObject("PillLib");
// set the query parameter
getPill._id = "575c79646a2dcf322b17c093";
// search for this pillName
getPill.Get();
getPill.pillInfo = "Final passover";
getPill.Save();
// print it
//console.log(getPill);
</script>
</body>
</html