source: admin/WebConsole/asistentes/jscripts/OrigenesMaster.js @ 240a4dc

918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 240a4dc was f676118, checked in by irina <irinagomez@…>, 7 years ago

#804 Ajax para AsistenteCloneRemotePartition?: Internacionalización mensaje de alerta.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5642 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 1.1 KB
Line 
1// ListarOrigenesMaster.js: Solicita al servidor las particiones e imágenes en cache en el equipo master
2//    disponibles para CloneRemotePartition y las devuelve en una lista de selección.
3function ListarOrigenesMaster(ip) {
4    var ajaxRequest;
5
6    // Soporte a distintos navegadores
7    try {
8        // Navegadores modernos
9        ajaxRequest = new XMLHttpRequest();
10    } catch (e) {
11        // Internet Explorer
12        try {
13            ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
14        } catch (e) {
15            try {
16                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
17            } catch (e) {
18                alert(TbMsg["NOSUPPORT"]);
19                return false;
20            }
21        }
22    }
23
24    ajaxRequest.onreadystatechange = function() {
25        if (this.readyState == 4 && this.status == 200) {
26            var ajaxDisplay = document.getElementById('ajaxDiv');
27            ajaxDisplay.innerHTML = this.responseText;
28        }
29    };
30
31    ajaxRequest.open("GET", "includes/asistentes/ListarOrigenesMaster.php?ip=" + ip, true);
32    ajaxRequest.send();
33}
Note: See TracBrowser for help on using the repository browser.