Using XML in wordpress
-
Hi.
I am using following code in my wordpress website,But its giving NULL all the time.I am try to get http header info of other websites.What i am doing wrong. Thanks for your help in advance.
<SCRIPT LANGUAGE=”JAVASCRIPT” type=”text/javascript”>
var client = new XMLHttpRequest();
client.open(“Head”, “http://www.wordpress.com”, true);
client.send();
client.onreadystatechange = function() {
if(this.readyState == 4) {
alert(client.getResponseHeader(“Last-Modified”));
}
}</script>
The topic ‘Using XML in wordpress’ is closed to new replies.