Here is the code I'm using. Keep in mind that I know practically nothing about javascript and borrowed the code from someone else. He hasn't had time to look at it yet. I'm just trying to modify it to open each list item in a modal dialog. This is SharePoint 2010.
<div id="ExternalListContainer"></div>
<script type="text/javascript">
//wait for SP to load up
ExecuteOrDelayUntilScriptLoaded(
function LoadExternalList() {
//turn on xsite scripting support for jquery
$.support.cors = true;
//load the external SP list
$("#ExternalListContainer").load("http://sourcesiteurl.aspx table.ms-listviewtable",
function(response, status, xhr) {
//find all the list items and convert to HTML so we don't see the code
$("#ExternalListContainer").find(".ms-vb2").each(function () {
$(this).html($(this).text());
});
});
}, "sp.ribbon.js");
</script>