Click to See Complete Forum and Search --> : passing height to IFRAME


Bev.
06-27-2005, 06:57 PM
I am creating a quotes page for internal use , only used by ie5 and ie6
no cross browser support needed. The page is a series of full width
IFRAMES each with relative positioning appearing under each other.
THe iFRAME displays an ASP search page with links to my database.

the page height of the ASP page is not being passed
to the IFRAME it opens up in . What tag do I need to put on the ASP page
to make this happen ?
Thanks for any suggestions , Bev.


<html>
<style type="text/css">
#myiframe{position:relative;left:0px;top:100px;width:100%;frameborder:0;scrolling:no;z-index:8;overflow:visible;}
</style>

<body>
<H1>Page stuff Goes Here</H1>
<a href="#" onClick="parent.document.getElementById('myiframe').src='quote2.asp';">++</a>

<iframe id="myiframe"></iframe>

</body>
</html>

phpnovice
06-29-2005, 10:21 AM
Your ASP code would have to send some JavaScript code to the browser to adjust the height of the IFRAME -- therefore, both documents (the one containing the IFRAME and the one loaded into the IFRAME) must be in the same domain. Give your IFRAME a name attribute value and see which of the following JavaScript statements displays that name:

alert("self.name=" + self.name);
alert("self.parent.name=" + self.parent.name);
alert("top.frames[name].name=" + top.frames[name].name);