Using $(document).ready within ajax loaded page

Using $(document).ready within ajax loaded page

I am using jQuery in a strange environment where my page is dynamically loaded via ajax, the problem is the html content and javascript content are loaded separately. I have gotten around some of this by using .live for the events I have used so far but I am now trying to run javascript after the page has completed loading. I am trying to get the jQueryui tabs working among other things.

I have tried using .ready and .live('ready', on a div that is loaded but neither works. The .ready seems to trigger before the page has finished loading.

I have no control over how my page is loaded but need to run javascript once my page has loaded.

Any ideas?