Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Frames or no frames?

Posted by: HeyChris! Mar 3 2007, 12:17 AM

This is the new prototype of the renovation I'm doing for my personal site. Here is the link (please do not download any content without express permission):

http://www.heychristeague.com/reno/index.html

Borders are used for reference.


What I'd like to do is have each link at the top open a different page inside the content box. Based on that, you would think I'd need to use frames to link to different pages in one portion of the homepage. So, my question is, Is there a way to open a page frame inside a table cell or will I need to reformat the whole page into frames just to keep the layout?

Thanks again!

Posted by: JamieHarrop Mar 3 2007, 07:00 AM

Please don't use frames. For the most part, you should never have to use frames, and http://www.htmlhelp.com/faq/html/frames.html#frame-problems http://www.htmlhelp.com/faq/html/frames.html#frame-search.

The best way to do this is to simply replicate the page but with different content. Then use SSI (Server Side Includes), PHP includes or ASP includes (Depending upon what your Web host supports) to include the links from one file. This means you'll be able to update just one file, and the links will change on every page that you include them in.

See the following links:

SSI: http://www.htmlhelp.com/faq/html/design.html#include-file
PHP Includes: http://www.tizag.com/phpT/include.php
ASP Includes: http://www.powerasp.com/content/code-snippets/includes.asp

Posted by: pandy Mar 3 2007, 07:06 AM

QUOTE(HeyChris! @ Mar 3 2007, 06:17 AM) *

(please do not download any content without express permission):


I have to download it to be able to see it. That's what browsers do. tongue.gif


QUOTE

What I'd like to do is have each link at the top open a different page inside the content box. Based on that, you would think I'd need to use frames to link to different pages in one portion of the homepage. So, my question is, Is there a way to open a page frame inside a table cell or will I need to reformat the whole page into frames just to keep the layout?

You can't do that without frames or IFRAME. But you don't need to do it the way you describe at all. Make two copies if the page you have now. The only difference should be that the content from the other pages is in place where you want it. Link to these pages and it will look the way you want. It will also be fast-loading and accessible.

You'll need to fix the links on those other page, of course, so you get a link back to the home page.

Posted by: HeyChris! Mar 3 2007, 08:51 AM

okay, another question if you please (thanks for prompt answers by the way!):

Is there a way to lock the perimeter of the content cell so that there is a scroll bar if there is too much text in it?

Posted by: Darin McGrew Mar 3 2007, 10:49 AM

QUOTE
Is there a way to lock the perimeter of the content cell so that there is a scroll bar if there is too much text in it?
You can do this with CSS, but I recommend against it. The separate scrolling areas make it harder to read the content, because the normal shortcuts for scrolling the page don't work on the small scrolling areas within the page. Just let the content flow.

Posted by: stjepan Mar 4 2007, 05:49 AM

That big head is really big - 646 kB smile.gif

Posted by: dsp Mar 4 2007, 03:04 PM

Also your background fills only 80% of my 1400 pixel wide screen which means your "About" graphics are out of line with the rest of your layout as they are justified right.

Posted by: gowri Jun 19 2007, 11:56 AM

QUOTE(pandy @ Mar 3 2007, 07:06 AM) *

QUOTE(HeyChris! @ Mar 3 2007, 06:17 AM) *

(please do not download any content without express permission):


I have to download it to be able to see it. That's what browsers do. tongue.gif


QUOTE

What I'd like to do is have each link at the top open a different page inside the content box. Based on that, you would think I'd need to use frames to link to different pages in one portion of the homepage. So, my question is, Is there a way to open a page frame inside a table cell or will I need to reformat the whole page into frames just to keep the layout?

You can't do that without frames or IFRAME. But you don't need to do it the way you describe at all. Make two copies if the page you have now. The only difference should be that the content from the other pages is in place where you want it. Link to these pages and it will look the way you want. It will also be fast-loading and accessible.

You'll need to fix the links on those other page, of course, so you get a link back to the home page.


Posted by: gowri Jun 19 2007, 11:59 AM

Hi chris,

Copying and making the duplicate is fine when the page to be displayed is static. What abt the case when u have some dynamic contents and it links to other HTML page with more information.....
thanks
gowri

QUOTE(gowri @ Jun 19 2007, 11:56 AM) *

QUOTE(pandy @ Mar 3 2007, 07:06 AM) *

QUOTE(HeyChris! @ Mar 3 2007, 06:17 AM) *

(please do not download any content without express permission):


I have to download it to be able to see it. That's what browsers do. tongue.gif


QUOTE

What I'd like to do is have each link at the top open a different page inside the content box. Based on that, you would think I'd need to use frames to link to different pages in one portion of the homepage. So, my question is, Is there a way to open a page frame inside a table cell or will I need to reformat the whole page into frames just to keep the layout?

You can't do that without frames or IFRAME. But you don't need to do it the way you describe at all. Make two copies if the page you have now. The only difference should be that the content from the other pages is in place where you want it. Link to these pages and it will look the way you want. It will also be fast-loading and accessible.

You'll need to fix the links on those other page, of course, so you get a link back to the home page.



Posted by: Darin McGrew Jun 19 2007, 10:09 PM

QUOTE(gowri @ Jun 19 2007, 09:59 AM) *
Copying and making the duplicate is fine when the page to be displayed is static. What abt the case when u have some dynamic contents and it links to other HTML page with more information.....
In that case, whatever generates the dynamic content will need a way to use the same template as the rest of your site. The details will depend on how you're generating the dynamic content.

Posted by: coco Jun 21 2007, 03:34 AM

how do i make a cell from a table to be a frame ... to name it and so on ... ???

Posted by: pandy Jun 21 2007, 05:02 AM

You don't. But you can place an IFRAME in a table cell if you must.
http://htmlhelp.com/reference/html40/special/iframe.html

Posted by: coco Jun 21 2007, 05:23 AM

QUOTE(pandy @ Jun 21 2007, 05:02 AM) *

You don't. But you can place an IFRAME in a table cell if you must.
http://htmlhelp.com/reference/html40/special/iframe.html


thank you !

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)