I 've got 2 pages
1)index.php
2)feedy.php
1)In index.php i have this code:
$.ajax({ type: 'GET',
url: 'feedy.php?n=<?echo $nnn?>',
data: { get_param: 'value' },
success: function (data) {
var names = data
$('#content').html(data);
}
});
2)In feddy.php i have this code:
for (i=0;i<=10-1;i++){
$.ajaxSetup({async: false});
$.post(
'addme.php',
{ txt: con, lnk:ln,addr:'".$addr."' },
function(data) {
$('#stage').html(data);
}
}
As you can see i have on page calling another page that makes 10 calls of another page.
The problem: index.php calls feedy.php BUT it only waits to get the php output and not the ouput of the javascript code . Can i make it wait so that in feedy.php all calls can be done ?
Another solution i think could work is to find a way to send a signal to index.php that feedy has finished making calls .
Please help me beacause i can't find a solution :(