RecentUpload: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
159 bytes removed ,  11:47, 22 August 2009
m
Line 149: Line 149:
     try { if (xx.readyState == 4 && xx.status == 200) {  
     try { if (xx.readyState == 4 && xx.status == 200) {  
   
   
//    var currdat = x.responseText.replace(/\r\n/g, ""); // this gets rid of any line ending
        document.getElementById('the_content').innerHTML=xx.responseText;
//  var currdat = currdat.split(' '); // populate the array
document.getElementById('the_content').innerHTML=xx.responseText;
   
   
} // END if (xx.readyState == 4 && x.status == 200)
} // END if (xx.readyState == 4 && x.status == 200)
Line 165: Line 162:
   
   
       setTimeout("file_data(phpdatFile + '?' + new Date().getTime())", 1000); // get new data  
       setTimeout("file_data(phpdatFile + '?' + new Date().getTime())", 1000); // get new data  
//    }
   }
   }
} // end file_data function
} // end file_data function
Line 185: Line 181:


To change the refresh rate adjust the figure 1000 in the code above.  This is the time in milliseconds.  So to refresh every 30 seconds it would be 30000
To change the refresh rate adjust the figure 1000 in the code above.  This is the time in milliseconds.  So to refresh every 30 seconds it would be 30000


=Example=
=Example=
8

edits

Navigation menu