function send dir var dir 192 168 ajax type POST url object php cache

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
function send(dir){
var dir = '192.168.1.1';
$.ajax({
type: "POST",
url: "object.php",
cache: false,
data: {dir: dir},
success: function(html) {
$('#content').append(html);
}
});
}
send();
setInterval(send, 5000);