Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

html - frames - are they acceptable under certain circumstances ?

Thread Tools
 
Search this Thread
 
Old 12 December 2007, 02:18 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default html - frames - are they acceptable under certain circumstances ?

I have an application whereby a customer is viewing a catalogue onscreen, with lots of rows.

At the very top of the screen are illustrations showing cad drawings with dimensions. The actual value of these dimensions are shown in each row of catalogue.

The problem is, the MD doesn't want to scroll all the way down to say, row 45, then scroll back to the top of the screen to see the drawing. He wants the drawing visible at all times, which means putting the drawing in an HTML frame.

Is this acceptable ?
Old 12 December 2007, 02:24 PM
  #2  
Iain Young
Scooby Regular
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

Why not put the information in a scrollable <div>?
Old 12 December 2007, 02:30 PM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

hmm, never used one before

So the <div> would show the database results, in a scrollable area ? Sounds ideal. I'll pop off and check it out.
Old 12 December 2007, 02:35 PM
  #4  
Iain Young
Scooby Regular
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

FAQ - Creating a scrolling DIV area.
Old 12 December 2007, 02:53 PM
  #5  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

thank Iain.

This method seems to be a bit limiting. I need to fil the top of the screen with the illustration, then I just want the rest dedicated to the results window.

It doesn't seem to like relative height eg. specified in %

I hate using absolute values.
Old 12 December 2007, 03:02 PM
  #6  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Can't you use a table split with your image in the top cell and your scrollable content stored in the bottom cell?

My web design knowledge is limited so i'm sure there's easier better ways
Old 12 December 2007, 03:05 PM
  #7  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by bob269
Can't you use a table split with your image in the top cell and your scrollable content stored in the bottom cell?

My web design knowledge is limited so i'm sure there's easier better ways
The <DIV> tag seems to require a absolute height (beyond which the scroll bar will appear)

Simply putting it in a <TR> isn't enough.

I may have to use FRAMES

With HTML, I hate to specify absolute values - I believe a good layout should use relative values, so for example my table fills the width and height of the users screen, maximized or otherwise. This to me is the essence of HTML.
Old 12 December 2007, 03:08 PM
  #8  
Iain Young
Scooby Regular
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

Not sure, I try to never use % values if possible (it can have unpredictable results across different browsers). Maybe a google will provide the answer...

p.s. bob, Tables are even more taboo than iframes
Old 12 December 2007, 03:08 PM
  #9  
GazTheHat
Scooby Regular
 
GazTheHat's Avatar
 
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes on 0 Posts
Default

Search engines don't like frames.

I don't see how you frames are the only solution and not <div>

Think you'll find relative values vary across browsers.
Old 12 December 2007, 03:14 PM
  #10  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by Iain Young
Not sure, I try to never use % values if possible (it can have unpredictable results across different browsers). Maybe a google will provide the answer...

p.s. bob, Tables are even more taboo than iframes
lol, i was under the impression frames/iframes were frowned upon and tables were king sure the initial setting up is a pita but the end result seemed better
Old 12 December 2007, 03:22 PM
  #11  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by GazTheHat
Search engines don't like frames.

I don't see how you frames are the only solution and not <div>

Think you'll find relative values vary across browsers.
I don't have ANY problems with relative values at all, but I totally agree FRAMES are horrible - both from useability, search engine and printing point of view. I might just say sod it and keep things as they are.
Old 12 December 2007, 03:24 PM
  #12  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by bob269
lol, i was under the impression frames/iframes were frowned upon and tables were king sure the initial setting up is a pita but the end result seemed better
you're dead right - they are frowned upon - quite rightly. Search engines hate them, printers hate them, its nonsense they ease site maintenance, and devices other than computers, eg. PDA's, etc... can't render them properly.

Its just for this example, they could offer a solution, although I'll have to write some separate printer friendly code for printing the contents of the rows.
Old 12 December 2007, 03:27 PM
  #13  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

How about one of those floating jpg's that always display at a certain place on the page when scrolling ?
Old 12 December 2007, 03:54 PM
  #14  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by bob269
How about one of those floating jpg's that always display at a certain place on the page when scrolling ?
hell no - thats javascript, and can be even more of a pain. It's ok, I'm going to check out a few other options.
Old 12 December 2007, 05:04 PM
  #15  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default

Tables are acceptable when displaying data in tabulated form.
What they are not supposed to be used for is layout.

Other sites I have seen like iStock will pop up a preview window when you hover over something like a 'more info' button which works quite well.

Depends whether this page is to be search engine optimised etc or is it just purely for internal use...
Old 12 December 2007, 09:39 PM
  #16  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by RichB
Tables are acceptable when displaying data in tabulated form.
What they are not supposed to be used for is layout.

Other sites I have seen like iStock will pop up a preview window when you hover over something like a 'more info' button which works quite well.

Depends whether this page is to be search engine optimised etc or is it just purely for internal use...
yes, its all tabulated data, so tables are fine

private use / not for search engines
Old 12 December 2007, 11:30 PM
  #17  
mykp
Scooby Regular
 
mykp's Avatar
 
Join Date: Jan 2006
Location: On the Cat and Fiddle
Posts: 1,483
Likes: 0
Received 0 Likes on 0 Posts
Default

I look at frames as a sometime neccassary evil, as I write online apps sometime the only way to do things is to use frames. If its non search engine or private facing then functionality comes first.

IMHO that is!
Old 04 January 2008, 04:47 PM
  #18  
simog
Scooby Regular
iTrader: (1)
 
simog's Avatar
 
Join Date: May 2007
Location: Milton Keynes
Posts: 542
Likes: 0
Received 0 Likes on 0 Posts
Default

You can use <DIV> tags and make use of CSS style sheets. The height does not have to be set to a specific value, you can set the height to auto in the style sheet and it will adjust the height of the layer based on the content held within it. Another route would be to specify a height in pixels and then set the overflow option for the layer to auto which will give you scrolling within that layer.
Create a stylesheet, reference that CSS in the html document. Give the Div an ID e.g <DIV ID="test"> then in your css write #test{ <your options here> }.

I have written several CSS Layer based web-pages using Ajax (a means of updating a layer using xmlhttp requests using Javascipting) and php. You wouldn't believe the flexibilty you have with web-design once you start down this path.

Hope that helps a bit.

Simon
Old 04 January 2008, 04:56 PM
  #19  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Thanks - will check it out
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
shorty87
Full Cars Breaking For Spares
19
22 December 2015 11:59 AM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
madmover
Member's Gallery
4
28 September 2015 10:46 AM
shorty87
Other Marques
0
25 September 2015 08:52 PM



Quick Reply: html - frames - are they acceptable under certain circumstances ?



All times are GMT +1. The time now is 04:56 AM.