-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a56783
commit b01cd3b
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// var name = name; | ||
// var pid = pid; | ||
// var age = age; | ||
// var sfeel = sfeel; | ||
// var stest = stest; | ||
// var docid = docid; | ||
// var docname = docname; | ||
|
||
// // Send data to Flask route | ||
// var xhr = new XMLHttpRequest(); | ||
// xhr.open("POST", "/generatereport", true); | ||
// xhr.setRequestHeader("Content-Type", "application/json"); | ||
// xhr.onreadystatechange = function () { | ||
// if (xhr.readyState === 4 && xhr.status === 200) { | ||
// console.log(xhr.responseText); | ||
// } | ||
// }; | ||
// var data = JSON.stringify({ | ||
// name: name, | ||
// pid: pid, | ||
// age: age, | ||
// sfeel: sfeel, | ||
// stest: stest, | ||
// doctor_name: docname, | ||
// doctor_id: docid | ||
// }); | ||
// xhr.send(data); |
Binary file not shown.