How do I get a dialog to load external HTML?

How do I get a dialog to load external HTML?

Hello

I need to get a dialog to load it's content from an external file.

I've seen various demos doing this, however they all specify the external HTML file in the Javascript at the head of the main document.

I need to specify the external document in the link itself:

<a href="url here">Click to open dialog</a>

That is because the page itself is a table, with each record with an Edit link.

Currently using pop-up Windows but want to move to jQuery dialog.

Does anyone know how to do this?

Thanks.