Commit 97bef39d authored by Mat's avatar Mat

Ajax: init la fonction XMLHttpRequest()

parent 97c82eb7
......@@ -27,5 +27,16 @@
console.log(ownersURL);
console.log(table);
function reloadTableOwner()
{
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
console.log(this);
};
xhr.open('GET', ownersURL, true); // les données GET sont dans ownersURL
xhr.send(null); // les données POST seraient ici
}
reloadTableOwner();
</script>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment