...

View Full Version : resize iframe



tsbalaban
04-15-2007, 02:41 AM
I need a function from iframe resizing to solve the frame width based solely on content. All the functions I have seen solve for height only. I use centerOnWindow (13.7) and adjustIFrameSize (14.3) from Javascript & DHTML Cookbook. I also use an event handler on a load event. I obtain width from frame.contentDocument.body.offsetWidth and frame.Document.body.scrollWidth.

My functions work for the first iframe (both width and height and centered). When I change the frame.src and call location.href the width is wrong.

Any suggestions greatly appreciated.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum