function updateInfo()
{
$.ajax({
type: "POST",
url: "/send.php",
data: {"url":"<?php echo $flink; ?>","catid":"<?php echo $catid; ?>"},
success: function(data){
$('#content').html(data);
}
});
function updateInfo () {
$.ajax({
type: 'post',
url: '...',
data: '...',
dataType: 'json'
}).done(function (data) {
send();
function send () {
var row = data.splice(0, 1);
if (row.length) {
$.ajax({
type: 'post',
url: '...',
data: row[0]
}).done(send);
} else {
console.log('Done');
}
}
});
}