Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How can I avoid i-frames ?
Old 02-07-2007, 05:36 PM How can I avoid i-frames ?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I asked someone why anybody would still use frames, and we couldn't think of a good reason. But now I can.

I want to display a report on one of my pages. It will use an html <table> structure, because I'm reporting tabular data, in tabular format. ( Don't boo me off stage please! ) So far so good, and everything works great.

Only sometimes the report takes more than a page, and people will have to scroll downward to read all of it. When this happens, the table's header row scrolls off the page, upwards. And then the data looses context, becomes a lot harder to make sense of. I'd like to fix the header at the top of the page always, no matter where you are in the report. This is pretty easy to do in Excel, and I think people have come to expect it.

So then how would one accomplish this on a web page? I have a bad feeling javascript is going to have to be involved, and that it would be somewhat complicated, am I right? Would I be better off using an i-frame in this situation? Or am I making things out to be harder than they really are?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2007, 04:14 AM Re: How can I avoid i-frames ?
Skilled Talker

Posts: 61
Location: Dhaka, Bangladesh
Trades: 0
There is nothing inherently wrong with iframe. For special situations, it is perfectly okay to use them. I think, the primary complain against iframe in pratcical situations is that they are not search engine friendly. If you are not worried about that here, iframe is fine to accomplish what you are asking. Other than that, yes, you will need to use JS or dhtml to accomplish a static menu. Which is just as bad from SE point of view and many times more complicated.
__________________

Please login or register to view this content. Registration is FREE
: Quantumcloud

Please login or register to view this content. Registration is FREE
: dna88
quantumcloud is offline
Reply With Quote
View Public Profile Visit quantumcloud's homepage!
 
Old 02-08-2007, 10:25 AM Re: How can I avoid i-frames ?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Tables were MEANT for tabular data, so it's perfectly acceptable to use them that way.

There is a way to include external html in an html page WITHOUT iframes:
http://www.aplus.co.yu/web-dev/inser...her-html-page/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-08-2007, 01:19 PM Re: How can I avoid i-frames ?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
If I recall, in the past I've used:

overflow: auto

in my CSS to achieve a similar effect as an iframe would.
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-09-2007, 02:18 AM Re: How can I avoid i-frames ?
Skilled Talker

Posts: 61
Location: Dhaka, Bangladesh
Trades: 0
I don't think the original poster is looking for a solution to add external files to his page. He wants a static header or menu at the top of the page that always remains always static at the same place so it's never out of the view of the users.
__________________

Please login or register to view this content. Registration is FREE
: Quantumcloud

Please login or register to view this content. Registration is FREE
: dna88
quantumcloud is offline
Reply With Quote
View Public Profile Visit quantumcloud's homepage!
 
Old 02-09-2007, 07:51 PM Re: How can I avoid i-frames ?
Junior Talker

Posts: 4
Name: Kyle Willett
Trades: 0
My 2 cents...

I wouldn't use an i-frame. Its not necessary.

If you were going to use an i-frame your header data would have to reside in a different document then your table data. I would put the header in one div and the data in another - then style with css. The overflow:auto would work well for the data layer (as stated above). Set this layer to a fixed height - the user can scroll through the records while the header layer stays right above it. Make sense?
__________________

Please login or register to view this content. Registration is FREE

Web Design in Nashville, TN
kylewdesign is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How can I avoid i-frames ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16754 seconds with 12 queries