function send var data1 host_1 val var data2 host_2 val var data3 host

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
function send(){
var data1 = $('#host_1').val()
var data2 = $('#host_2').val()
var data3 = $('#host_3').val()
$.ajax({
type: "POST",
url: "ping2.php",
cache: false,
data: ({data_1:data1, data_2:data2, data_3:data3}),
success: function(html) {
$('#result').append(html);
}
});
scroll();
}
function time(){
alert ('start');
send();
intervalID = setInterval('send()', 1000*($('#cycle').val()));
}