---
# System prepended metadata

title: cours 06.04
tags: [WebService]

---

###### tags: `WebService`

# cours 06.04

**lien entre languages de programmation**
XML<->Java
JSON<->JS
YAML<->Python

## Ajax tableau
```

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function loadDoc() {
            var xhttp = new XMLHttpRequest();
            xhttp.onreadystatechange = function() {
                if (this.readyState == 4 && this.status == 200) {

                    var arr = xhttp.responseText.split(",");

                    document.getElementById("info").innerHTML = arr[0];
                    document.getElementById("iw26").innerHTML = arr[1];

                }
            };
            xhttp.open("GET", "data.html", true);
            xhttp.send();
        }


        var active = setInterval("loadDoc()", 5000);
    </script>
</head>

<body>
    <div id="demo">
        <h1>Donné TIA</h1>
        <button type="button" onclick="loadDoc()">Change Content</button>
    </div>

    IW22
    <div id="info">
        ceci est remplacé par Iw22

    </div>
    IW26
    <div id="iw26">
        ceci est remplacé par Iw26

    </div>
</body>

</html>

```