Utente:Sanjilops/monobook.js: differenze tra le versioni

m
nessun oggetto della modifica
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 204:
var httpRequest = createRequest();
var id = setTimeout(function() { httpRequest.abort();}, 30000);
var param = "format=xml&action=query&prop=imageinfo&iiprop=url&titles=" + encodeURIComponent(names);
httpRequest.onreadystatechange = function () { Receive(httpRequest, id, thumbs); return; }
httpRequest.open('POST', wgServer + wgScriptPath + "/api.php", true);
Riga 221:
if (xml.normalize) xml.normalize();
var ii = xml.getElementsByTagName('ii');
alert(ii.length);
for (var i = 0; i < ii.length; i++) {
/* NB: Si dà per scontato che l'ordine delle immagini nella risposta sia lo stesso della query */
list[i].src = ii[i].getAttribute('url');
}
document.getElementById("debug").innerHTML = o.responseText
return;
}
0

contributi