Forum Moderators: open
Is there a way, without scripting, to make the IFRAME the exact height and width of it's rendered source?
Yup. I'm not throwing any mission-critical stuff in there (yet), but some sections of my right column (sponsor's ad text, for instance) are iframe. I'm guessing the loss rate is 10%, about the same as javascript.
BTW, which do you think is less cpu intensive, iframed content or just write the same content into the page with ssi?
Err .. About the only browser that _uses_ IE is .. umm .. IE. :)
The reason why NS6 supports IFRAME is because tons of users all over the world got to play a part in creating the browser. It hasn't gone over to IE technology .. instead it has it's own technology (still Mozilla), it just supports more tags than before.
I wouldn't use iframes if I were you. I'd rather use a regular frame (if possible) or use SSI like you suggested. You don't have to worry about CPU ..
I have not had any problems, nor complaints regarding CPU drain. As far as I have witnessed, that is negligable, if even noticeable.
I did have a site map that loaded into an iframe, though I moved from that purely on a design basis.
I do use iframes to load Flash content so the parent pages will validate XHTML - works nicely too!
I also use iframes to function as an embedded image viewer (I hate thumbnails and pop-ups!) this works GREAT, plus, you need only load a single image initially.
I mentioned this elsewhere, another benefit if iframes is that each page is a complete html document that can have a "spider-friendly" link leading to it from the parent page, or can be referenced on a sitemap. Lots of possiblities here... really!
>>It could also cause problems if you have no appearant navigation on your site....might look like a bunch of doorways.
You can place standard links, text, anything you want between the iframe tags. Search engines and older browsers are then shown this information instead of the iframe.
I have not used iframes for my navigation, but have used them for content.
The one thing you do need to do, is add some navigation to the iframe page. Otherwise, if the iframe is indexed, people who arrive at your site through that page are stuck.
The % is of the parent page in which the iframe is embedded - not of the source page loading into the iframe.
On iframe performance for use with navigation... I guess it removes the server-overhead in processing an include (though this is almost certainly negligible) but it could mean an extra round trip to the server on every page load. I suppose the navigation page, if static, would get cached though. Swings and roundabouts I guess.
Okay, I don't like your Flash menus (in the Opera section) too much either, and I am by no means your "average user". ;)