Using jQuery in the simplest way looks like this:
$.ajax({ type: "POST", url: "some.php", success: function(msg){ $.ajax({ type: "POST", url: "some2.php", success: function(msg){ alert( "End of second call" ); } }); } });
Vincent ramdhanie
source share