View Single Post
Old 05-21-2009, 05:14 PM   #3 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default

I understand it, but don't know how to implement it always... is this what you mean AND what ready state would I use to run in the bg?:

Code:
<script type="text/javascript">
function ajaxFunction()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
 {
  setInterval
  (
    function()
    {
     //in here tell what div to refresh with what?
    }, 10000
  );
 }
}
}
</script>
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote