View Full Version : Switch Content Script inside Iframe

01-16-2005, 02:03 AM
First off thanks to all who make these scripts!

Problem: When a page using 'Switch Content Script' is loaded into an Iframe managed by 'Iframe SSI script II', the Iframe's 'height' is not adjusted to fit the 'expanded' content.

'Switch Content Script'
Iframe SSI script II

Is there a way to solve this? Or does it mean a brand new script is required?

Even a dirty quick fix like having the 'switchcontent' be fully expanded at first, so that the iframe is sized to maximum, and then have the content compresssed back. At least that would avoid any expanded content from overflowing, even though the Iframe would be too big. I don't even have enough JS understading to do that though, so I just made a dummy entry as the last content item that is as big as the largest content item auto-open, and have the SCS script closing content items when a new one opens.

01-16-2005, 02:23 AM
Well I found a better quick fix, which was to change the Iframe in question to have scrollbar var to 'auto' instead of 'no'. That's not meant to deter one of you geniuses from putting on the old thinking cap and making the PERFECT SCS script! :D