Hello:
I'm using this script as an auto resize function for an iframe, but can't get it to work in safari.
<script type="text/javascript">
<!--
function calcheight()
{
var the_iframe = document.getElementById('paymentHistory');
var the_document = (the_iframe.contentWindow ¦¦ the_iframe.contentDocument);
if(the_document.document) the_document = the_document.document;
var the_height= the_document.body.scrollHeight;}
//-->
</script>
to call the function, I have
<iframe id="paymentHistory" onload="calcHeight()" src="/andy/admin/categories/printpaymenthistory.php"></iframe>
any thoughts as to what is wrong