Can you change an iFrame height dimensions from a function with-in the child frame?
So I have imbedded an iFrame on the page which is just a dynamic table, but because I don't know how long the table will be, it causes scrollbar to appear.
I tried to change this from the onload element of the iFrame by doing this:
<IFRAME onload="this.style.pixelHeight=this.scrollHeight;" style="OVERFLOW: auto; WIDTH: 100%;height:;" src="mytablehtml.asp" frameBorder=0></IFRAME>
But for some reason this does not work??
So I would like to include a function inside the child frame that will test how tall it is and tell it's parent to resize if possible.
*** OR ***
Would like to have my current method corrected if wrong.