Utente:Jalo/monobook.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 730:
// optional: bundle.onFailure (xmlhttprequest, bundle)
// optional: bundle.otherStuff OK too, passed to onSuccess and onFailure
alert("In cwwpajax.download")
var x = window.XMLHttpRequest ? new XMLHttpRequest()
Riga 736 ⟶ 737:
if (x) {
alert("x is not empty")
x.onreadystatechange=function() {
x.readyState==4 && cwwpajax.downloadComplete(x,bundle);
Riga 741 ⟶ 743:
x.open("GET",bundle.url,true);
x.send(null);
}
return x;
Riga 748:
downloadComplete:function(x,bundle) {
alert("In cwwpajax.downloadComplete")
x.status==200 && ( bundle.onSuccess && bundle.onSuccess(x,bundle) || true )
|| ( bundle.onFailure && bundle.onFailure(x,bundle) || alert(x.statusText));
Riga 764 ⟶ 765:
function cwOntoWatchlist(xmlreq, data)
{
alert("In cwOntoWatchlist")
var a=xmlreq.responseText;
var c=data.catname;
Riga 775 ⟶ 777:
for(i in a)
{
alert("In for")
temp=a[i].indexOf("</timestamp>");
if(temp!=-1)
{
alert("In if")
temp=new Number(a[i].substr(0,temp));
if(temp>latesttime)
{
alert("In other if")
latesttime=temp;
a[i]=a[i].substr(a[i].indexOf("<title>")+7);
Riga 807 ⟶ 812:
while(i--)
{
alert("In while")
if(a[i].innerHTML==temp)
{
Riga 812 ⟶ 818:
while(temp!=null)
{
alert("In other while")
if(temp.tagName!=null)
if(temp.tagName.toLowerCase()=="li")
Riga 844 ⟶ 851:
//http://it.wikipedia.org/w/query.php?what=category&cptitle=Guerre%20Stellari&cplimit=100&cpextended&format=xml
addOnloadHook(function(){
alert("In addOnloadHook CW")
{
if(CategorieOsservate==undefined)
Riga 864 ⟶ 872:
}
});
alert("Fine di tutto")
//**** fine CATEGORY WATCHLIST ******
|