Go Back   DevHunters.com l Webmaster Forum - Web Advertising - Web Design - SEO Forums > Webmaster / Coding / Web Design Discussion > HTML / XHTML / CSS

HTML / XHTML / CSS Discuss HTML, XHTML and CSS coding in this forum.

Have A Look At Some Of Our Webmaster Related Sponsors!


Script Directory


Advertise Here


Market Leverage


Free Templates

3D Guide-Characters
3D Guide-characters


Advertise Here

Reply
 
LinkBack Thread Tools Display Modes
Old 06-15-2007, 09:23 PM   #1 (permalink)
Field Master
 
karthikeyan's Avatar
 

Join Date: Jun 2007
Posts: 622
iTrader: 0 / 0%
Hunter Bux: 509.00
karthikeyan is on a distinguished road
Send a message via MSN to karthikeyan Send a message via Yahoo to karthikeyan
Default What is Iframe ?

The iframe element creates an inline frame that contains another document.

Example

<iframe
src ="/default.asp"
width="100%">
</iframe>
karthikeyan is offline   Reply With Quote
Old 06-16-2007, 02:40 PM   #2 (permalink)
Member
 

Join Date: Jun 2007
Posts: 39
iTrader: 0 / 0%
Hunter Bux: 10.00
bfluid is on a distinguished road
Default

You can also do custome heights and widths using this:


<iframe
src ="http://www.example.com/yourpage.php"
width="342"
height="500"
>
</iframe>
bfluid is offline   Reply With Quote
Old 06-19-2007, 08:18 AM   #3 (permalink)
Member
 

Join Date: Jun 2007
Posts: 57
iTrader: 0 / 0%
Hunter Bux: 0
yankee456 is on a distinguished road
Default

many things can be dome in iframe like disabling and enabling scrolling it is really useful but simply useless for seo but it will worsen ur seo so everyone recommends not to use it
yankee456 is offline   Reply With Quote
Old 06-24-2007, 10:03 AM   #4 (permalink)
Member
 

Join Date: Jun 2007
Posts: 79
iTrader: 0 / 0%
Hunter Bux: 0
Albino is on a distinguished road
Default

iframes are horrible, never use them :(
Albino is offline   Reply With Quote
Old 07-13-2007, 12:18 AM   #5 (permalink)
Sharp Shooter
 
suresh's Avatar
 

Join Date: Jun 2007
Posts: 1,052
iTrader: 2 / 100%
Hunter Bux: 4.00
suresh is just really nicesuresh is just really nicesuresh is just really nicesuresh is just really nice
Default

yes it may look like a popup but this are just like spam I dont like iframes
suresh is offline   Reply With Quote
Old 10-06-2007, 09:46 AM   #6 (permalink)
Field Master
 

Join Date: Aug 2007
Posts: 150
iTrader: 0 / 0%
Hunter Bux: 0
Maverick is on a distinguished road
Default

I don't like using iframes. It may be very easy to use, but I prefer coding something good with PHP.
Maverick is offline   Reply With Quote
Old 10-17-2007, 08:23 PM   #7 (permalink)
Senior Member
 

Join Date: Jul 2007
Posts: 285
iTrader: 0 / 0%
Hunter Bux: 0
Arch3r25 is on a distinguished road
Default

I like iframes. I find that they are especially useful with AJAX, because you can set a frame to refresh itself with JavaScript....that's really convenient.
Arch3r25 is offline   Reply With Quote
Old 12-02-2007, 07:06 PM   #8 (permalink)
Administrator
 
J0ker's Avatar
 

Join Date: Apr 2007
Posts: 165
iTrader: 0 / 0%
Hunter Bux: 1,520.00
J0ker is on a distinguished road
Send a message via MSN to J0ker
Default

Some other attributes:
frameborder (border around frame, defaults to 1, set to 0 to remove)
width
height
style (add CSS to it)
name (to be used to identify it)

How to have a link change page in iFrame:
Quote:
<a href="LINK" target="NAME OF iFRAME">TEXT</a>
J0ker is offline   Reply With Quote
Old 12-02-2007, 07:28 PM   #9 (permalink)
Sharp Shooter
 
weblord's Avatar
 

Join Date: Mar 2007
Location: Philippines
Posts: 1,323
iTrader: 1 / 100%
Hunter Bux: 611.00
weblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud of
Send a message via ICQ to weblord Send a message via AIM to weblord Send a message via MSN to weblord Send a message via Yahoo to weblord Send a message via Skype™ to weblord
Default

for those who love iframes like i do
here's some more parameters

marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"
weblord is offline   Reply With Quote
Old 12-03-2007, 05:51 PM   #10 (permalink)
Administrator
 
J0ker's Avatar
 

Join Date: Apr 2007
Posts: 165
iTrader: 0 / 0%
Hunter Bux: 1,520.00
J0ker is on a distinguished road
Send a message via MSN to J0ker
Default

I would suggest leaving scrolling=no out, making it default to the "auto" value, which basically means it will scroll if the page inside doesn't fit, otherwise it won't, as you wont want half a page iframed, would you?
J0ker is offline   Reply With Quote
Old 12-03-2007, 06:58 PM   #11 (permalink)
Sharp Shooter
 
weblord's Avatar
 

Join Date: Mar 2007
Location: Philippines
Posts: 1,323
iTrader: 1 / 100%
Hunter Bux: 611.00
weblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud of
Send a message via ICQ to weblord Send a message via AIM to weblord Send a message via MSN to weblord Send a message via Yahoo to weblord Send a message via Skype™ to weblord
Default

yeah those are the possibilities, yes, no and auto, thanks for the headsup, i just copied the iframe code from my amazon.com affiliate account btw.
Quote:
Originally Posted by J0ker View Post
I would suggest leaving scrolling=no out, making it default to the "auto" value, which basically means it will scroll if the page inside doesn't fit, otherwise it won't, as you wont want half a page iframed, would you?
weblord is offline   Reply With Quote
Old 12-05-2007, 11:20 PM   #12 (permalink)
Administrator
 
J0ker's Avatar
 

Join Date: Apr 2007
Posts: 165
iTrader: 0 / 0%
Hunter Bux: 1,520.00
J0ker is on a distinguished road
Send a message via MSN to J0ker
Default

I would think Amazon of all places would be beyond the use of iFrames and using includes in PHP which are much more efficient.

Quote:
<?php
include('URL');
?>
This does the same but without having a frame, meaning instead of it being a page inside of a page, it just grabs the content of one page and puts it in another, avoiding and problems with styling,etc.. between the two pages that can be quite annoying as well as specifically specified heights and widths.

Another tip is if you are for example in a table or something and are using an iframe you can set the width and height to 100% to take up the whole area of the table, this can be very useful when you don't want to name an exact height and width, but rather it to just be fluid.
J0ker is offline   Reply With Quote
Old 01-23-2008, 03:25 PM   #13 (permalink)
New Hunter
 

Join Date: Jan 2008
Posts: 1
iTrader: 0 / 0%
Hunter Bux: 0
litrail is on a distinguished road
Default

Quote:
Originally Posted by Arch3r25 View Post
I like iframes. I find that they are especially useful with AJAX, because you can set a frame to refresh itself with JavaScript....that's really convenient.
AJAX is when you use XMLHTTPRequest javascript object to get and send data, not self-refreshing frames.
litrail is offline   Reply With Quote
Old 01-23-2008, 04:33 PM   #14 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

In my professional opinion, iframes should only be used when the iframes are translating another page, or when a shoutbox is used or some sort of chat mechanism.
SpOrTsDuDe.Reese is offline   Reply With Quote
Old 01-24-2008, 12:34 AM   #15 (permalink)
Field Master
 

Join Date: Dec 2007
Location: INDIA
Posts: 228
iTrader: 4 / 100%
Hunter Bux: 20.00
anantshri will become famous soon enoughanantshri will become famous soon enough
Send a message via Yahoo to anantshri
Default

Quote:
Originally Posted by J0ker View Post
I would think Amazon of all places would be beyond the use of iFrames and using includes in PHP which are much more efficient.



This does the same but without having a frame, meaning instead of it being a page inside of a page, it just grabs the content of one page and puts it in another, avoiding and problems with styling,etc.. between the two pages that can be quite annoying as well as specifically specified heights and widths.

Another tip is if you are for example in a table or something and are using an iframe you can set the width and height to 100% to take up the whole area of the table, this can be very useful when you don't want to name an exact height and width, but rather it to just be fluid.

I agree with this and this is what i do, I fell in love with php due to this include function only.
and keeping design fluid is always a good idea, coz it allows easy transaction between screen resolutions.
__________________
DON'T LEARN TO HACK,HACK TO LEARN
http://anantshri.info
http://linuxgurus.info
anantshri is offline   Reply With Quote
Old 01-24-2008, 04:45 PM   #16 (permalink)
Administrator
 
J0ker's Avatar
 

Join Date: Apr 2007
Posts: 165
iTrader: 0 / 0%
Hunter Bux: 1,520.00
J0ker is on a distinguished road
Send a message via MSN to J0ker
Default

Yeah iFrames are a good alternative to people who don't know php and similar, however any big name site won't use them.

Also, yes AJAX is just Javascript with database capabilities, but yeah switching between frame with javascript is cool, but you can do a similar effect without even using a frame!
J0ker is offline   Reply With Quote
Old 04-02-2008, 07:53 AM   #17 (permalink)
Field Master
 

Join Date: Aug 2007
Posts: 112
iTrader: 0 / 0%
Hunter Bux: 0
CoolGuy is on a distinguished road
Default

I find Iframe makes it easy to fit in things without having to go into tedious coding. It's easy to fit it in and looks good.
CoolGuy is offline   Reply With Quote
Old 04-02-2008, 08:08 AM   #18 (permalink)
New Hunter
 
bitslinker.com's Avatar
 

Join Date: Mar 2008
Posts: 57
iTrader: 0 / 0%
Hunter Bux: 0
bitslinker.com is on a distinguished road
Default

Iframe is Inline Frame.

With frames, you can display more than one Web page in the same browser window.

Frames
With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.

The disadvantages of using frames are:

The web developer must keep track of more HTML documents
It is difficult to print the entire page

--------------------------------------------------------------------------------

The Frameset Tag
The <frameset> tag defines how to divide the window into frames
Each frameset defines a set of rows or columns
The values of the rows/columns indicate the amount of screen area each row/column will occupy

--------------------------------------------------------------------------------

The Frame Tag
The <frame> tag defines what HTML document to put into each frame
In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The HTML document "frame_a.htm" is put into the first column, and the HTML document "frame_b.htm" is put into the second column:

<frameset cols="25%,75%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
</frameset>

Note: The frameset column size value can also be set in pixels (cols="200,500"), and one of the columns can be set to use the remaining space (cols="25%,*").



--------------------------------------------------------------------------------

Basic Notes - Useful Tips
If a frame has visible borders, the user can resize it by dragging the border. To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag.

Add the <noframes> tag for browsers that do not support frames.

Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags! However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags! See how it is done in the first example below.
__________________
free web based proxy
http://www.fxan.net
Computer Tips n Tricks Forum
http://www.bitslinker.com
bitslinker.com is offline   Reply With Quote
Old 11-03-2008, 04:54 AM   #20 (permalink)
New Hunter
 

Join Date: Oct 2008
Posts: 22
iTrader: 0 / 0%
Hunter Bux: 0
neeraj23 is on a distinguished road
Default

<html>
<body>
The material below comes from the website Example Web Page
<iframe src="http://example.com" height="200">
Alternative text for browsers that do not understand IFrames.
</iframe>
</body>
</html>

The source you want to link in the iframe is in the <iframe src=" ">
neeraj23 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Show Printable Version