shadkeene
12-15-2011, 09:21 PM
Is there a best practice to get a lastmodified in local time vs. GMT?
Here's the code:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "parks.xml", true);
xmlhttp.send();
xmlhttp.onreadystatechange = function() {
if(this.readyState == 2) {
var updated = (xmlhttp.getResponseHeader("Last-Modified"));
//alert(updated);
document.getElementById('xml_modified').innerHTML = updated;
}
}
and <li id ="bottom_menu"><a href="parks.xml" target = "_blank">XML</a> Updated: <div id = "xml_modified"></li>
Thanks for any help,
S
Here's the code:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "parks.xml", true);
xmlhttp.send();
xmlhttp.onreadystatechange = function() {
if(this.readyState == 2) {
var updated = (xmlhttp.getResponseHeader("Last-Modified"));
//alert(updated);
document.getElementById('xml_modified').innerHTML = updated;
}
}
and <li id ="bottom_menu"><a href="parks.xml" target = "_blank">XML</a> Updated: <div id = "xml_modified"></li>
Thanks for any help,
S