Click to See Complete Forum and Search --> : Opening a page within a page


Karpaty
11-07-2007, 05:16 PM
Not sure if the title of the thread describes what I need...
I want to create a simple web page with a title, menu and content parts as shown below...
http://img147.imageshack.us/img147/8530/43412213zk3.jpg
I was thinking of using a table and place all of these parts in different cells of the table, merging the top two rows for the logo.
The question I have is how to open the links in the menu cell of the table, so that they would open inside the content cell of the table without having html code for menus and title on each page?

Thanx in advance :)

Centauri
11-07-2007, 06:56 PM
Firstly, DON'T put the various parts in tables - tables are for displaying tabular data, not for laying out sites...

You could use an iframe, but these have accessibility / usability issues like standard frames do. The normal method is to load a new page with the same headers / menus etc, but you can use server-side languages such as SSI, PHP or ASP (depending on what your server supports) to either insert common header and menu files into each page, or insert content pages into a common master page - each page is reloaded with the common parts on each, but the server does the work of combining them so you don't have to manually write (and update) the header and menu in each page.

Karpaty
11-07-2007, 07:57 PM
This is a basic html assignment and does not require any server-side languages. It wont even be put up on the net. I had done similar things with PHP on my personal site a while back and just thought maybe there was an alternative to this method using html only. I guess there isnt.
P.S. I never use frames - cant stand them.

felgall
11-07-2007, 11:50 PM
Maybe you should consider using object tags instead as they are the replacement for frames and all the other tags that used to be used for embedding things into web pages.

jackacohen
01-16-2010, 10:10 AM
See:

http://comaj.net/logic/fotProbs.htm

Then use view-->source to see straight html coding.