...

View Full Version : :: control parent iframe from child



babelfish
09-28-2005, 02:43 PM
hi all, im trying to control the height of an iframe from inside the child page. the idea is to get the height of the content (container) then resize the iframe to that height. for some reason im having trouble accessing the iframe.

function setiframeheight(what1,what2){ // for setting an iframe's height
var i = document.getElementById('container') ;
var c = parent.frames['iframer'];
c.style.width = i;
}

any help appreciated

babelfish
10-03-2005, 11:42 AM
any ideas peeps? :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum