Hi. I have tried this using several diferent scripts I found online. I cant get any to work! the iframe is:
<iframe onload="window.scroll(0,0)
I have tried changing height to 100%
Tried jsscrip
Tried:
function resizeIframe(iframeID) {
if(self==parent) return false; /* Checks that page is in iframe. */
else if(document.getElementById
var FramePageHeight = framePage.scrollHeight + 10; /* framePage
is the ID of the framed page's BODY tag. The added 10 pixels prevent an
unnecessary scrollbar. */
parent.document.getElement
/* "iframeID" is the ID of the inline frame in the parent page. */
}
Tried:
<script type="text/javascript">
//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["maincntnt"]
//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="no"
var getFFVersion=navigator.use
var FFextraHeight=parseFloat(g
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids)
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids] : document.getElementById(if
tempobj.style.display="blo
}
}
}
function resizeIframe(frameid){
var currentfr=document.getElem
if (currentfr && !window.opera){
currentfr.style.display="b
if (currentfr.contentDocument
currentfr.height = currentfr.contentDocument.
else if (currentfr.Document && currentfr.Document.body.sc
currentfr.height = currentfr.Document.body.sc
if (currentfr.addEventListene
currentfr.addEventListener
else if (currentfr.attachEvent){
currentfr.detachEvent("onl
currentfr.attachEvent("onl
}
}
}
function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.curre
if (iframeroot)
resizeIframe(iframeroot.id
}
function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(if
}
if (window.addEventListener)
window.addEventListener("l
else if (window.attachEvent)
window.attachEvent("onload
else
window.onload=resizeCaller
</script>
NOTHING SEEMS TO WORK
Main Topics
Browse All Topics





by: govindarajan78Posted on 2009-09-03 at 03:48:46ID: 25249297
write a javascript function in the parent page to resize the iframe.
call the function from the the reports page like parent.functionname();
also try
parent.iframename.height inside the result page