home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Questions about Tables

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2141
Discussions: 200,972, Posts: 2,379,760, Members: 246,336
Old October 8th, 2002, 07:30 PM   Digg it!   #1 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,385
Send a message via ICQ to Creatures
Questions about Tables

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
Creatures is online now   Reply With Quote
Old October 8th, 2002, 08:29 PM     #2 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,385
Send a message via ICQ to Creatures
i have a new idea can i do this with PHP or another language??

Creatures
Creatures is online now   Reply With Quote
Old October 8th, 2002, 09:07 PM     #3 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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.
__________________
USA Linux Users Group
OpenSUSE.us
crouse is offline   Reply With Quote
Old October 8th, 2002, 09:23 PM     #4 (permalink)
Ultimate Member
 
e980238's Avatar
 
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?
e980238 is offline   Reply With Quote
Old October 8th, 2002, 09:28 PM     #5 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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.
crouse is offline   Reply With Quote
Old October 9th, 2002, 10:31 AM     #6 (permalink)
Member
 
FritzJohn316's Avatar
 
Join Date: Oct 2002
Location: Houston, Texas
Posts: 68
Send a message via AIM to FritzJohn316
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"
FritzJohn316 is offline   Reply With Quote
Old 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")
                   }
?>
LinuxNewbie is offline   Reply With Quote
Old 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....
LinuxNewbie is offline   Reply With Quote
Old October 9th, 2002, 07:52 PM     #9 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,385
Send a message via ICQ to Creatures
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
Creatures is online now   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3050)
The disrespect of Obama by Russian .. (48)
Delete an OS (16)
Breaking: San Diego ACORN Document .. (10)
Nvidia GTX 260 problem (8)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
windows vista security holes (17)
Regular Build (11)
Internet Lost (5)
windows 7 problem (7)
Point and Shoot Camera Suggestions. (6)
Print spooler problem (16)
Recent Discussions
Delete an OS (16)
Multiple Restarts Required at Boot (4)
cell phone won't work (0)
Nvidia GTX 260 problem (8)
Is the PSU I received dead? (15)
Can't open Word (12)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)


All times are GMT -4. The time now is 09:53 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28