Click to See Complete Forum and Search --> : iFrames: Full screen?


saraistarr
05-23-2004, 07:01 AM
Hey, is there any way to have a frame/iFrame to automatically fit to the window?
My site is http://www.sarahs-site.s5.com
I copied the code off HTML goodies and replaced it with my own stuff to test it, and now I want to really start building my site. Can anyone help?

nshiell
05-23-2004, 07:19 AM
try this: -
<HTML>
<HEAD>

</HEAD>
<BODY leftmargin=0 topmargin=0>

<table width=100% height=100%>
<tr>
<td width=200>
<IFRAME SRC="NAVBAR.html" NAME="left" width=200 height=100%></IFRAME>
</td>
</td>
<IFRAME SRC="SITE.html" NAME="right" left=100% height=100%></IFRAME>
</td>
</tr>
</table>
</BODY>
</HTML>

C if it works!

saraistarr
05-23-2004, 08:26 AM
Okay, I'll try it!

Ben Rogers
05-23-2004, 01:24 PM
I'd just like to remind you that iframes are inaccesible, a few browsers don't support them, and that they're horrible for SEO. They're just a bad idea overall. An ugly, inaccesible, design-hindering, bad idea.

saraistarr
05-23-2004, 03:24 PM
*shrug* I dunno... this site is personal, I think most users will be using IE... *smacks head* and AOL. Duh. Well I guess you're right... I'll try to think of a different way.

Ben Rogers
05-24-2004, 03:05 PM
Cool, but, what you have to ask yourself is do you want to learn webdevelopment, or just have a personal site? If you want to learn webdevelopment, then there's much better ways of doing this. However, if you want to have a personal site, and just your friends are going to be visitors, then IFrames won't hurt anything especially if you instruct page indexing bots to not index your page (<meta name="robots" content="noindex, nofollow, noarchive" />)

If you want to learn webdevelopment, you should look into Server Side Includes ( A few tutorials: http://www.w3schools.com/php/php_includes.asp , http://projep.t35.com/index.php?2=include , http://us4.php.net/manual/en/function.include.php ) which allow you to "peice together" code (the links have a better explanation.)

dr john
05-24-2004, 04:52 PM
If you make an iframe fill the whole window, what purpose does it serve, it might as well not be there as a normal page does the same thing.

philaweb
05-24-2004, 06:28 PM
Originally posted by dr john
If you make an iframe fill the whole window, what purpose does it serve, it might as well not be there as a normal page does the same thing.

Let's say your pages are hosted by A but your domain is parked at B.

People are able to access your pages at /www.someunknownhost.com/~member1234567890/pages/index.html

OR

They can access your domain at /www.mydomain.com/ and see the exact same pages.

This can be done by using frames or iframes.

MstrBob
05-24-2004, 06:33 PM
One could simply move their website to www.mydomain.com If they can't host pages on mydomain.com, and it is simply a domain name, then it should be pointed to his web host.

But odder to me is the fact that nshiell, the code you gave is effectively a frame, only not the best way to do it. If one wants to use a frame, set the HTML DTD to HTML 4.01 Frameset, and use frame codes. If your host doesn't support server includes, or any server side languages, you can't afford to move, and you have a navigation page that is often updated, frames can be an acceptable solution.

PhillMc
05-24-2004, 07:30 PM
Agreed. Why not point the domain at the server rather than use a FullScreen (silliest thing I have ever heard.. oh, no, that would be that IE is standards compliant) IFRAME; which is not accessible!

Ben Rogers
05-24-2004, 09:01 PM
If what Phil said is the case, then why not use a redirect? with php, <?php header("Location: http://www.somehost.com/~whatever/potato.htm"); ?>, and with (X)HTML I know there is a way to do this with a META tag, but I don't know the syntax...

PhillMc
05-25-2004, 12:30 AM
Omega is right. Redirect can be done using a META. I believe this is the syntax, but I could be wrong.


<META NAME="REFRESH" CONTENT="INSERT URL HERE", TIME IN SECONDS>


Someone correct me if I'm wrong on the syntax, but I am sure that it's done with the refresh meta. It's been a while since I have used it. :D

PeOfEo
05-25-2004, 12:39 AM
<meta http-equiv="refresh" content="5;URL=urlhere">
5 would be 5 seconds.

PhillMc
05-25-2004, 12:54 AM
Ahh HAA!

Thanks Peo for the correction; I knew that it didn't look right. lol

philaweb
05-25-2004, 06:13 AM
Originally posted by MstrBob
One could simply move their website to www.mydomain.com If they can't host pages on mydomain.com, and it is simply a domain name, then it should be pointed to his web host.

Well, some Internet Providers give you access to the Internet via dial-up, cable (DSL, ADSL). They throw in 10 or 20 MB of web storage in the deal and nothing else.

Domain pointers cost money - some people are tight on their money. :D

MstrBob
05-25-2004, 05:08 PM
Yes, but if one has already bought the domain, it has to be pointed somewhere. I don't understand how someone could buy a domain, with it pointed at a webhost, and not use the webhost. The domain has to be pointed at a webhost, so why not use that webhost?

Ben Rogers
05-25-2004, 06:47 PM
I know the feeling... I still use a free host, and free software. But I don't have the option of purchasing web services, so, I have my excuse. :D