Code: Select all
<table id="boardposition" class="board">
..... // stuff
</table>
Code: Select all
function get_url(url)
{
request.open("GET", url, false); // synchronous request
request.send('');
return request.responseText;
}
...
document.getElementById('boardposition').innerHTML = get_url('startpos.txt');
But when I try it with Internet Explorer, it is completely ignored, and the new game starts playing with the final position of the previous game as starting position (thoroughly messes things up...).
What am I doing wrong that could act as an excuse for IE to ignore the assignment?
(For those who want to try with their own browser; the page is at
http://hgm.nubati.net/schess/play.html ,
and clicking on a game in black window on the right that lists them will start auto-playing that game on the board on the left.)
