jquery ajax chaining
Posted: Tue Jun 08, 2010 11:17 pm
How to chain jquery ajax calls to execute in a linear fashion?
My attempt:
No alerts, so I figure it's not executing.
My attempt:
Code: Select all
$.get(
'script.php', { t: 2, k: 18, u: '8032' }, function() {
alert('done1');
$.get(
'script.php', { t: 5, k: 18, u: '48' }, function() {
alert('done2');
}
)
}
);