Hmmm... Have you though about the .load() method in jquery instead of the getdata() function you are currently using. The reason I suggest this is I know that if there is $(document).ready() script on the "loaded" page of the .load() method, it will be applied on the target page. Here is a simple example.
<a href="page1.php" class="loadLink">Load Page 1</a>
<div id="container"></div>
$(document).ready(function(){
$(".loadLink").click(function(e){
e.preventDefault();
$("#container").load($(this).attr("href"));
})
});
I know, it seems too simple. But that is really all that should be necessary. If you put your javascript on page1.php that hooks up the dynamic effect, it will be loaded with the rest of the page contents in to the container div.