i want to update the “last update” in every .html pages by loading the date from a txt file.
possible with javascript?
i’ve search around for it, and got the following script.
how can the content be display in the table (not a form)?
that is showing the variable in the table, like palain text.
thanks
<SCRIPT language = “Javascript”>
objXml = new ActiveXObject(“Microsoft.XMLHTTP”);
// objXml = new ActiveXObject(“Msxml2.XMLHTTP”); older version
var datafile = “LastUpdate.txt”;
objXml.open(“GET”, datafile, true);
objXml.onreadystatechange=function() {
if (objXml.readyState==4) {
display(objXml.responseText);
}
}
objXml.send(null);
function display(msg) {
alert (msg);
}
</SCRIPT>