X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=js%2Ftopology%2Ftopology.js;fp=js%2Ftopology%2Ftopology.js;h=ebd33a0b841a27791cbfdef010b7ed8be29fdd29;hb=4ff4cfab60fd88f431c88603d57612fc489dc62f;hp=45040e107c1709d4bfd6353d5f94950520fc3a07;hpb=ea20f018c05bcc4e56b2dfa3eee30af0d6ffabf3;p=VSoRC%2F.git diff --git a/js/topology/topology.js b/js/topology/topology.js index 45040e1..ebd33a0 100644 --- a/js/topology/topology.js +++ b/js/topology/topology.js @@ -294,22 +294,18 @@ $(function () { // La funcion jsonget fue creada para sustituir el metodo json de D3 function jsonget() { - let xhr = new XMLHttpRequest(); xhr.open('GET', "/gettopo" , true); //console.log(xhr); //para ver en la consola xhr.onload = function() { if (xhr.status == 200) { //can use this.status instead //console.log(xhr.responseText);// para ver en la consola - - listTopology(JSON.parse(xhr.responseText)); plotGraph(toGraph(JSON.parse(xhr.responseText))); } } xhr.send(); } - - jsonget(); + jsonget();