Get contents of Iframed txt file?

Get contents of Iframed txt file?

I'm trying to grab the contents from an IFRAME that happens to pull in a text file.

I need to grab that data and display it in a PRE tag on the page. However its not working


<iframe frameborder="0" allowtransparency="false" scrolling="auto" height="300" width="500" src="http://example.com/scoreboard.txt" style="background-color:#fff;" id="scoreboard" name="scoreboard"></iframe>


<script type="text/javascript">
$(document).ready(function(){

var sb_url = $('#scoreboard').attr("src");

$('#flatpage_content').append('<pre id="sb_data"></pre>');
//$("#sb_data").load(sb_url);
//alert(sb_url);

/*$.get(sb_url, function(data){
alert("Data Loaded: " + data);
});
*/

/*
$.ajax({
   url : sb_url,
   success : function (data)
   {
      alert(data);
      $("#sb_data").text(data);
   }
});
*/



//$('#scoreboard').remove();
$('#scoreboard').hide();
});
</script>