Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Designing > HTML/CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2009, 07:03 AM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default Frame height problem

Hey all,
I've got a frame on my site, which is a simple box, made for a poll. Once the user has voted, it loads a new page with the results in the frame. A lot of people told me I shouldn't use frames because they're bad, but atm I don't care, it's good like that, and I want to use it !
The only problem is the height. I can set the height so it's not too small or too big, but the problem is that the height is not relative. That means if I remove "height: xxxpx;" from the CSS stylesheet, it automatically sets the frame at 50 px or so but that's too small, so the scrollbars appear and you have to scroll in the frame. And that's weird. Any idea how I could change that ? Do you see what I mean ? Cause I will change the question of the poll quite often and then I would have to change the height in the stylesheet everytime, that's crap

Thanks in advance,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-22-2009, 01:09 PM
Member
 
Join Date: Mar 2009
Posts: 45
Default

Hi,
I have an iframe,with no scrollbars and the length of the src page i am calculating on the onload event and setting the iframe height.
But somehow the iframe content truncates at a specific height.the remaining part of iframe is shown to be blank.
Is there a maximum limit to iframe height on a page?

_____________
Local florists list
gift ideas
________
Herbal Health Shop

Last edited by nicu_pascan : 05-05-2011 at 02:10 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2009, 11:31 PM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default hai

That limitation is one reason why frames (and iframes) are bad and you should never use them
There are others, as well...
However, if you're set on this, there are JavaScript-based ways of checking how big the content of an iFrame is, and then resizing it to fit. Google is the best place to go, but here's a starter for ten: http://www.devpapers.com/article/200.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-01-2009, 12:42 PM
Member
 
Join Date: Mar 2009
Posts: 45
Default

That limitation is one reason why frames (and iframes) are bad and you should never use them
There are others, as well...
However, if you're set on this, there are JavaScript-based ways of checking how big the content of an iFrame is, and then resizing it to fit. Google is the best place to go, but here's a starter for ten:seo tools
12A7465
________
LEARNING DISORDERS ADVICE

Last edited by nicu_pascan : 05-05-2011 at 02:11 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-03-2009, 11:20 PM
Junior Member
 
Join Date: Apr 2009
Posts: 9
Default

Hi,
The only way I can see around this is if you would make the frame as high as the longest question you could see writing, and let there be a little bit of empty space when there is a shorter question up there and that is assuming that you have to use a frame. The best thing to do would be to use some AJAX.
________
Kids Prilosec

Last edited by Leo Rupert : 08-20-2011 at 10:52 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-07-2009, 05:40 AM
Junior Member
 
Join Date: May 2009
Location: http://www.underlink.co.uk
Posts: 24
Default

i know you want frams but your whole thing would be easyer if you use <div> with a scroll element
__________________
UnderLink UK Site Design & Developemnt UnderLink
Cheap Affordable Web Design CMS, Logo Design and more...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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

All times are GMT -5. The time now is 07:54 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.