function open_object dir data dir alert data ajax type POST url object

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