Questions about Tables  | |
October 8th, 2002, 07:30 PM
|
#1 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
Hi there,
i saw this "Problems with Tables" Thread
and i want to know when i have two tables in my site and in the left one there's the menu and in the right one the main site and when i press a button on the left one the right one changes 
like frame set but i know frames ar stupid
or are there some other good resolutions!
Creatures
__________________ Canon EOS 450D | Canon EF-S 18-55mm 1:3.5-5.6 IS | Canon EF-S 55-250mm 1:4-5.6 IS | Canon Speedlite 430EX II |
| |
October 8th, 2002, 08:29 PM
|
#2 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
i have a new idea can i do this with PHP or another language??
Creatures |
| |
October 8th, 2002, 09:07 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
Actually when you use two tables to simulate frames (a navigation section and a main body section) you are just loading a new page where the table for the nav section is actually just an exact copy of the rest of the pages nav sections ........ That particular section is the same on every page and simulates frames without browser compatibility problems......
The only problem you have is that to edit your navigation section would require that you edit EVERY page.
ALTERNATIVELY you could use server side includes and .shtml pages.......... this would allow you to include the NAV section in one text file and thereby eliminate the need to update EVERY page.
one of my sites www.desmoineslumber.com uses server side includes for the nav section........ that way I don't have to edit the nav links on every page........only on one text file. |
| |
October 8th, 2002, 09:23 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jan 2002
Posts: 1,881
| htmlgoodies.com is a good site with a lot of tutorials for frams and stuff like that. 
__________________
Got root?
|
| |
October 8th, 2002, 09:28 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
| Quote: Originally posted by crouse
The only problem you have is that to edit your navigation section would require that you edit EVERY page. | quoting myself ....... That isn't actually a bad thing if your site is small. Regular html pages usually load faster than any other type of page.
I avoid frames like the plague........ not because I can't use them..... I just hate the problems they create (printing, viewing source, framing someone else's site..... etc etc) ...... just my own preference though. |
| |
October 9th, 2002, 10:31 AM
|
#6 (permalink)
| | Member
Join Date: Oct 2002 Location: Houston, Texas
Posts: 68
|
Hey Creatures, Crouse is right about includes. That is your best answer. You can see at one of my sites ( Memorial Hermann Healthcare System) we use tons of includes. Frames are BAD!!! IMO of course. Wait...no...Frames are just BAD!!!
Fritz
Art is the demonstration that the ordinary is extraordinary.
Anedee Ozenfant--"Foundations of Modern Art"
__________________
Fritz
Art is the demonstration that the ordinary is extraordinary.
Anedee Ozenfant--"Foundations of Modern Art" |
| |
October 9th, 2002, 11:40 AM
|
#7 (permalink)
| | Banned
Join Date: Sep 2002
Posts: 194
|
actually there IS a way to do that in PHP
you have the menu as part of a form and it would look something like this, btw i have NO IDEA HOW TO USE SELECT MENUS!!!!! Code: <?php
$frame = $_GET['frame'];
?>
<form action="<?php echo $PHP_SELF; ?>" method="POST">
<select name="frame_menu" onChange="<?php $frame = (this.form); ?>">
<option value="" SELECTED>Choose here...</option>
<option value="index">Home</option>
<option value="maps">Maps</option>
<option value="join">Join</option>
</select>
</form> then in your right side frame thingy you have something like this: Code: <?php
$frame = $_GET['page'];
if($frame=="index"){
include("index.inc");
} elseif($frame=="maps"){
include("maps.inc");
} elseif($frame=="join"){
include("join.inc");
} else {
include("default.inc")
}
?> |
| |
October 9th, 2002, 06:18 PM
|
#8 (permalink)
| | Banned
Join Date: Sep 2002
Posts: 194
|
hey wait a minute, this part here "$frame = (this.form)", that "this.form" thing looks like javascript..... i think that code i put is missing some javascript, i'll find what i'm missing here.... |
| |
October 9th, 2002, 07:52 PM
|
#9 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
thanks for the posts i thought there wouldn't be so much ideas thanks!
now i gonna read the whole thing again (i hope i get it  )
Creatures |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |