Alright well my website has very little desire for ajax, I have a front page with 10 article listings. I use ajax currently to check the database for any new articles and then it reloads the div, that is pretty much the extent of my need. However I would like to put one final touch on it, that being that the div fades in…
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
document.getElementById('articles').innerHTML=xmlHttp.responseText;
setTimeout('Ajax()',5000);
}
}
xmlHttp.open("GET","http://localhost/articlefeed",true);
So I was curious as to how to get that working, preferably without dabbling into jQuery, but I will if I absolutely have to.
Thanks.