blob: 41fd8500bf665e08a47c3fc4c8e6a1895f6505bf (
plain) (
blame)
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
|
function appelle_image()
{
var formData = new FormData( document.getElementById("donnees_enfant") );
var requete = new XMLHttpRequest();
requete.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200) {
document.getElementById('courbe').src = 'data:image/png;base64,'+(this.response);
document.getElementById('sectioncourbe').style.display = "block";
}
}
requete.open("POST","courbe/b64",true)
requete.send(formData)
}
function exporte_donnees()
{
var formData = new FormData( document.getElementById("donnees_enfant") );
var requete = new XMLHttpRequest();
requete.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200) {
document.getElementById('export').innerHTML = this.responseText;
document.getElementById('sectionexport').style.display = "block";
}
}
requete.open("POST","export_donnees",true)
requete.send(formData)
}
|