Question about iframes in VSD - Post...

User 597929 Photo


Registered User
1,332 posts

I want to re-do my golf league web site using VSD. The software for calculating scores, handicaps, points, and so on spits out reports as HTML files. Since these files will change weekly, and I want their content to show up in pages that have the nav bar and other formatting stuff, I decided the best method was to link in the actual data pages using iframes inside VSD-created static pages.

Apart from any "are you crazy?" questions, I have a couple:

First, are the height and width parameters mandatory? If not, and you don't specify them, what happens--does it default to the size of the entire containing page?

Second, is "autoscroll" the default behavior? The files are going to grow in size (some horizontal, mostly vertical) as the season progresses, and will certainly outgrow the host pages. I can just finesse it by making it explicit but I'm curious what the default behavior is.

Thanks!
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 597929 Photo


Registered User
1,332 posts

Okay, I've pretty much answered these by reading the spec and a couple of other helpful web sites. :cool:
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 282670 Photo


Registered User
3,940 posts

Hi Spinny,
Hey I'm not up to par onthis stuff but you do have some great questions here, so I thought I would give it a try, Not specifying any width or height, or even scrolling, I get this:http://www.kellyinfo.com/eyeframe.html
Scrolling is automatic if you don't type in "no" and it looks like width and height are needed.




User 597929 Photo


Registered User
1,332 posts

Okay, so here:

<style type="text/css">
div.Object169 { position:absolute; top:125px; left:280px; width: 327px; z-index:0; }
div.Object169 table { width: auto; }
div.Object170 { position:absolute; top:57px; left:253px; z-index:1; }
div.Object170 table { width: auto; }
</style>


It got the idea the width was 327. I assume it got that from the default size of the HTML object you inserted. Seem plausible?
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 282670 Photo


Registered User
3,940 posts

That's it! at least what I have as well and size of the html box makes no difference I added a link to the page for another iframe with the width and height added ( auto scroll of course)




User 597929 Photo


Registered User
1,332 posts

This is all very encouraging. By creative use of the dimension attributes I can have the visible pane focus on the most important part of the information and the scroll bars allow access to the rest for the morbidly curious.

The only minor concern I have now is apparently strict HTML 4 doesn't allow iframes, so I presume you'd have to use the object type. Does anybody really care about the strict version, anyhow?
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 282670 Photo


Registered User
3,940 posts

Sorry misread it!, I don't about about doc types really, I never had to change one, no need to, so I'd say to hec with it. But my sites aren't all that important either, just a spare time type of thing, I also don't care wether it gets validated as well I get spidered no matter what I do, eventually so I see no reason for google search and all. ( my opinion)




User 597929 Photo


Registered User
1,332 posts

It looks like the strict implementation would be:

<object data="http://myofficialnewbie.com/Page1.html" width="800" height="1200" type="text/html"></object>


I'm stuck at my day job right now so can't test it. :P
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz
User 282670 Photo


Registered User
3,940 posts

I changed it and got the same results,( nothing shows) interesting
what's fun is trying to change to strict vis standard settings for all pages....




User 597929 Photo


Registered User
1,332 posts

Cool. So iframe is just a special-purpose version of the more general object type. The only gotcha is you have to use the "type" attribute but other than that it's about the same.
"You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa

Visit Spinland Studios: http://www.spinland.biz

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.