Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Using iframes

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Gene

Gene PimentelTop Member
Impact
489
I have never used iframes in my designs before, but I have the need to use it in one of my projects now. My question is, what are the negatives to using iframes? Are there any compatibility issues with browsers? Are there any particular issues or reasons not to use iframes? Thanks for any insight.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
use php includes instead of using iframes.. spiders will have a hardtime crawling them.
 
0
Close
cavinti said:
use php includes instead of using iframes.. spiders will have a hardtime crawling them.


Thanks, but that's like asking me to speak chinese :)

I'll have to look for a "PHP includes" tutorial.
 
0
Close
you have to change the main file to .php if your still using .html

and heres the code

<?php
include '--the link--';
?>
 
0
Close
That's it?? Wow... I'll give it a go. Thanks a million.
 
0
Close
Anyway if you wanna try iframes go for this to ensure cross browser compatibility:

http://dynamicdrive.com/dynamicindex17/indexb.html


making sure there are text links to every page on your site and that every page has a relevant title, including content between the tags <iframes> </iframes>
 
0
Close
Another bad thing about IFrames is that you can't exactly get the horizontal scroll bar to dissapear in either ie or mozilla. There is always one way to get rid of it in each browser. The include is a good idea!
 
0
Close
0
Close
it seems that it is not pointing to the right link.. it has to point to the exact file.. where yours is redirecting to something..
 
0
Close
cavinti said:
it seems that it is not pointing to the right link.. it has to point to the exact file.. where yours is redirecting to something..

There is only one link I can possibly put in, which is:
http://citruscountyre.listingsxpress.com

It's the same link on both versions. The iframes one works, but the php include, although it is the exact same link, doesn't work. Strange...
 
0
Close
try this

<?php
include 'http://citruscountyre.listingsxpress.com/listings/ListingsGrid.aspx';
?>

i see it might not work properly.. it might not show anything and if it does link within might not work properly.. the file i notice should be modified for it to work.. so i guess just leave the iframe
 
Last edited:
0
Close
i hate them mate, they never work for me or go all pear sheaped.
 
0
Close
EDIT: NVM my post lol, sorry.
 
0
Close
TheComputerGeek247 said:
Another bad thing about IFrames is that you can't exactly get the horizontal scroll bar to dissapear in either ie or mozilla. There is always one way to get rid of it in each browser. The include is a good idea!


Get displayed Iframes in mozilla without horizontal scrollabar is matter of bad ccs designing.

Mozilla browser have a bug regarding width and height displaying incorrectly 100% size but that can be fixed by adding "min-width:auto; width:100%;"

IE doesn not understand min-width or min-height so you can even specify 800px or whatever other measure to get rid of that scrollbar.

Code:
<?php
include 'http://citruscountyre.listingsxpress.com/listings/ListingsGrid.aspx';
?>

php include does not work properly on windows servers despite they have php support.... as ASP for apaches has poor performance in linux platforms.

I assume you are on Windows because the ASPX extension, in which case you need to use ASP OR SSI include instead of PHP include REANAMING THE file as ASP, ASPX or SHTML depending

Code:
<!-- #INCLUDE FILE="listings/ListingsGrid.aspx" -->

if the file is in you own webspace try again the php this way

Code:
<?php
include '/listings/ListingsGrid.aspx';
?>

but insisting, Windows Servers are not fully compatible with php coding.
 
0
Close
THANK YOU ALL for your help. I really appreciate the time you took to work this out. I've added rep to everyone I could.

Chronos, thanks for the insight on Windows server & php. The page I'm trying to pull up is in fact on a Windows server, but it's an external system I'm trying to integrate into my client's real estate website.
 
0
Close
For some reason when i edited my browser (arent i stupd) all the sites ever since with frames have gone all wrong, thats why i dont use that browser any more.
 
0
Close
If I wanted a hyperlink to open a page in an iFrame, but the hyperlink was outside of the iFrame...Could I? Is that possible?

www.cherreysexhaust.com/media.htm is the page I'm working on. I want to be able to click those "customer cars, visitors cars, wallpaper, etc" and load each of their pages in the iFrame to the right of them (where it says "coming soon").
Anyone know of a tutorial that could help me?
 
0
Close
Is the link working now or are you still having problems?
 
0
Close
TheComputerGeek247 said:
Is the link working now or are you still having problems?

The iframe version is working perfectly. Just couldn't get the php version to work.
 
0
Close
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Member card: see how many threads a member started
The member card now shows a Threads number, right after Posts. The member card is the box that opens when you point at a name. Profile...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back