-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
executable file
·36 lines (26 loc) · 894 Bytes
/
Readme.txt
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
How a query is added to demo:
1. add a button to demo.php
example:
<button type="button" id="mhr">Query maternal heart rate data</button>
2. add ajax query to js/conte-dojo.js
example:
on(dom.byId("mhr"), "click", function(){
AJAX CODE HERE
call a php script to get needed data (step 3)
});
3. write a php script to handle the ajax call above.
example: fetch-mhr-stats.php
this has a form and the submit button is handled by a javascript function that calls another php script via AJAX
4. add a method to retrieve data from db to lib/rdf-db.php
example:
function get_mhr_stats()
5. write ajax query called by #3 above in js/conte-js.js
example:
function getMHRData(){
AJAX CODE HERE
}
6. write a php script to handle the ajax call in #5.
example: fetch-mhr-data.php
7. add a method to retrieve data from db to lib/rdf-db.php
example:
function get_mhr_data($period,$data_range)