8,230
edits
Line 36: | Line 36: | ||
var invocation = new XMLHttpRequest(); | var invocation = new XMLHttpRequest(); | ||
var url = 'http://www.kiwix.org/index.php?action=render&title=template:ZIMdumps'; | var url = 'http://www.kiwix.org/index.php?action=render&title=template:ZIMdumps'; | ||
function downloadZimList() | function downloadZimList() { | ||
invocation.open('GET', url, true); | invocation.open('GET', url, true); | ||
invocation.onreadystatechange = handler; | invocation.onreadystatechange = handler; | ||
invocation.send(); | invocation.send(); | ||
} | } | ||
Line 62: | Line 49: | ||
if (invocation.status == 200) | if (invocation.status == 200) | ||
{ | { | ||
var textDiv = document.getElementById("zimList"); | var textDiv = document.getElementById("zimList"); | ||
textDiv. | textDiv.innerHTML = invocation.responseText; | ||
} | } | ||
} | } | ||
} | } | ||
//]]> | //]]> | ||
</script> | </script> |
edits