190
rated 0 times
[
194]
[
4]
/ answers: 1 / hits: 42105
/ 15 Years ago, thu, november 19, 2009, 12:00:00
The folowing script does not wait for $.get to finish loading the page before continuing with the loop:
$.each(data.songs, function(index, val) {
$('#nowartist')
.append('song starting');
$.get(http://localhost/play.php, function(data){
alert('done');
});
});
data is a JSON object
Any ideas or comments will be greatly appreciated.
More From » jquery