<p>I'm trying to load a page that is basically an edit form inside a
dialog (ui.dialog).  I can load this page fine from an external (I'm
using asp.net) page.</p>

<p>The problem is that inside of my "popup" form, I need to <code>$(function()
{my function here});</code> syntax to do some stuff when the page loads,
along with registering some <code>.fn</code> extensions for some dynamic dropdowns
using ajax calls.</p>

<p>I have created my <code>&lt;script type="text/javascript" src="jquery.js"&gt;</code> but
I don't think these are being included, and also my <code>$(function)</code> is not
being called.</p>

<p>Is this possible to do or do I need to find another way of
accomplishing what I need to do? </p>

If you really need to load that form via AJAX you could to do all the Javascript stuff in  $.ajax callback itself.
So, you load the popup form like this:
```
```
$.ajax({
   //...
   success: function(text) {
       // insert text into container
       // the code from $(function() {});
   }
});
```
```