Here comes an other iFrame question. I am trying to resize the iFrame acording to it's height. And found a nice JS function:


Code:
function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe').height=
      the_height;
}

But I am getting a JS error, access denied, on the first line. Anyone understand why? Is it because the content of the iFrame is on the other server or what?



ØØ