http://api.jquery.com/jQuery.post/

come dice jquery e come ti dicevo sopra esiste uno stato Complate()

codice:
    
    // Assign handlers immediately after making the request,
    // and remember the jqxhr object for this request
    var jqxhr = $.post("example.php", function() {
      alert("success");
    })
    .success(function() { alert("second success"); })
    .error(function() { alert("error"); })
    .complete(function() { alert("complete"); });
li è il posto corretto per far partire i tuoi script dopo ovviamente aver inserito il risultato della request.

Quindi come dice Andrea il codice dovrebbe essere gia presente nella magina madre