Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2004, 06:19 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default iframes

Hi all,
can anyone please tell me the advantages and disadvantages of using <iframe>s in my website.

I know how helpful they can be, but really do not know much about their negative side.

Thanks a lot
Darren Darkins

http://www.positive-websolutions.co.uk
Reply With Quote
  #2 (permalink)  
Old 01-11-2004, 06:35 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default iframes

Hi Darren,

On the one hand, iframes seem like the ideal solution for those browsers that cannot handle frames, but on the other, the downside with using an <iframe> in a design, is that it won't be a 100% compatible with all browsers. In particular, some older browsers will not recognise the iframe at all... in these cases you'd need to provide an alternate text that would display instead of the frame itself.

Also, looking to the future, if you're hoping to convert a design into an XHTML document, the XHTML 1.1 standard does not include the use of frames OR the <iframe> tag. My advice is to look into alternative methods with DIV layers and new CSS2 techniques.

Hope that helps,

Paul
Reply With Quote
  #3 (permalink)  
Old 01-11-2004, 09:13 PM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

Good point, Paul. You can place content in a div box that has a set height, and give it a property of 'overflow:scroll', it will appear to spiders as just normal page text (because it is), and still work like an 'iframe'.

If you need to know more, post here again and I'm sure we can help.
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #4 (permalink)  
Old 01-11-2004, 09:38 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default THanks

Thanks guys,

the information that you have given me is extremely useful, and I will now be using this <div overflow:scrolling> technique when required.

One question about it though : do all browsers support this way of scrolling??

Thanks in advance.

Darren
Reply With Quote
  #5 (permalink)  
Old 01-11-2004, 09:56 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default One Question

Hi again, just to take full advantage of what you know, I was wondering if either of you knew how to get rid of the horizontal scroll bar when using the overflow:scroll command?? preferably a cross browser method??

Thanks, DD
Reply With Quote
  #6 (permalink)  
Old 01-11-2004, 10:34 PM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default Overflow support

Hi Darren,
I found this page that shows browser support for layout properties, and it shows that all browsers above versions 4 support it except that in opera it may be problematic. Mozilla, IE and Netscape are all good on PC's, IE5 on mac might be iffy.
For the horizontal scroll, I think that using a % for width, instead of an absolute measurement, and narrowing the width so that the content doesn't spread wider than the alotted space on the page, is the only way to get rid of it.
There are so many ins and outs to understand in this area, but I am beginning to see how powerful CSS can be when used properly. But man, lots to be aware of!
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #7 (permalink)  
Old 01-12-2004, 04:32 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Example of a DIV with auto scroll

For a good example of how to implement a DIV with scrolling set to auto, have a look at New Plastic Arts. The events box at the bottom right hand of the page has the appearance and behaviour of an iframe, however it has all been achieved with CSS.

This is a code snippet for the eventstable ID:

div#eventstable {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
overflow:auto;
height: 120px;
margin: 5px 0 0 0;
background: #fff;
width: 240px;
}


The page displays consistently in Mozilla Firebird and IE 6.0. it also validates as XHTML1.0 Strict!

Paul
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0