function send dir alert dir ajax type POST url object php cache false

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
function send(dir){
alert (dir),
$.ajax({
type: "POST",
url: "object.php",
cache: false,
data: {dir: dir},
success: function(html) {
alert ('wow');
$('#content').append(html);
}
});
}
function time(dir){
alert ('start');
send(dir);
intervalID = setInterval('send(dir)', 1000*($('#cycle').val()));
}