Added a message reply preview thinger in post.php
[specialops2.git] / js / index.js
blobf3d5b1e71ebe0bb63467c6cd1036ca3c6832dd9e
1 /* © Special Ops 2006
2  * See the included COPYING file for licencing terms.
3  * $Id$
4  */
6 var boardlist;
8 function blUpdate() {
9         if ( boardlist.readyState == 4 && boardlist.status == 200 ) {
10                 var update = boardlist.responseXML.getElementById('boardlist');
11                 var boards = document.getElementById('boardlist');
12                 document.getElementById('so2-index').replaceChild(update, boards);
13         }
16 // Get boardlist every few seconds
17 timers.things.push(
18         function() {
19                 boardlist = new XMLHttpRequest();
20                 boardlist.onreadystatechange = blUpdate;
21                 boardlist.open('GET', document.URL, true);
22                 boardlist.send(null);
23         }