loadData function not loading....
It's working now, here's the proper code.....
-
<script src="js/jquery-1.2.6.min.js" type="text/javascript"/></script>
<script type="text/javascript"/>
function update() {
$("#notice_div").html('Loading..');
$.ajax({
type: 'GET',
url: 'online2.php',
timeout: 2000,
success: function(data) {
$("#some_div").html(data);
$("#notice_div").html('');
window.setTimeout(update, 5000);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
$("#notice_div").html('Timeout contacting server..');
window.setTimeout(update, 60000);
}
})}$(document).ready(update);
</script>