Jump to content

Is this possible with HTML?


HHawk

Recommended Posts

Okay I am wondering about the following, which is probably not possible, but I am not afraid to ask it anyway.With an iframe it's possible to add name="content" tag, so it will display the link contents in this iframe.But since iframe is "hated" by a majority of webusers, I was wondering if you could do the same with tables?Or is there another solution to this?My website is split in 3 sections (tables):- left: navigation (fixed)- middle: dynamic content- right: some random stuff like affiliates & WHOIS-querry (fixed)So is it possible when people click a link from the navigation section that it will update the middle section (table) with the new content? If possible without the use of an iframe?Hopefully you guys can provide me with an answer to this... Cause I tried searching for it on Google, but I cannot find anything about it. Or maybe I am using the wrong search queries... :)I already tried to give the table an id (e.g. id="content") and making the hyperlink from the navigation target the content, but it does not work? It only opens a new blank page (with the content of course).

Link to comment
Share on other sites

You can use css to create a 3 column page. The left column can hold the links, the right column some other stuff and the middle column (the largest) the main content.There is an easy tutorial - have a look at Selectutorial here:http://css.maxdesign.com.au/selectutorial/tutorial_intro.htmscroll down and click on the finished sample button to see what it looks like - I think its what you want.

Link to comment
Share on other sites

You can use css to create a 3 column page. The left column can hold the links, the right column some other stuff and the middle column (the largest) the main content.There is an easy tutorial - have a look at Selectutorial here:http://css.maxdesign.com.au/selectutorial/tutorial_intro.htmscroll down and click on the finished sample button to see what it looks like - I think its what you want.
First thanks for taking the time to answer. Highly appreciated.The link you gave, does look like I want, but I think I will have a small problem when I am going to use this. Cause the tables are skinned; I mean they have graphics and some stretch (put them as a background). Or is it possible to place the tables and everything else in those columns (like in the tutorial).I really hope you understand me, cause I am having a hard time trying to explain what I want in decent English (I am Dutch so...) :)
Link to comment
Share on other sites

By the way; here is a screenshot to make clear what I am talking about.Maybe it's easier to understand this way.ScreenshotThe screenshot is in low quality cause of the size. :)As you can see there are 3 columns of tables (each expands in height automaticly). But is it possible to the middle column show the contents when clicking on a link in the navigation section?Cause I am also planning, if possible of course, to show the query result from WHOIS in the middle column (table) as well.../editIt would work if I would use iframes, but as everyone knows; Mozilla Firefox doesn't like height=100%. So that would be causing me problems, especially since the contentboxes can get bigger depending on the content in them... :S

Link to comment
Share on other sites

Well, instead of IFrame, you may create an XHTML frameset that would hold the rest of the documents in frames (not IFrames). However, the framesets are hated for the same reasons Iframes are, so that's not a solution either.It's best to simply call a new page with the new content, calling the navigation over and over again with a sort of SSIs.

Link to comment
Share on other sites

Well, instead of IFrame, you may create an XHTML frameset that would hold the rest of the documents in frames (not IFrames). However, the framesets are hated for the same reasons Iframes are, so that's not a solution either.It's best to simply call a new page with the new content, calling the navigation over and over again with a sort of SSIs.
Hehe. Sounds like it would ugly, no offence meant.But would it be possible with CSS? Though I have to redo the slices and stuff I guess... :)
Link to comment
Share on other sites

php includes would work to do that.
Know of any tutorials on how to do that by any chance? My PHP knowledge is pretty mediocre. :)Or tell me how to Google it./editI found something which will get me started and does not look al to difficult.Is this good information to start with? http://www.tizag.com/phpT/include.phpOnly one page with basic information.If anyone else has a good website, please share it! Thnx. :)
Link to comment
Share on other sites

Okay I changed the layout to PHP, still the main page is divided by 3 columns; navigation / main content / some other stuff.Each column uses the PHP include command, to include the necessary PHP page. E.g. <?php include("navigation.php"); ?>But now how do I load / target the content from a link to the maincontent.php (main text area)?Or does this way mean, it has to load the whole page everytime?I am baffled here, so if anyone would be nice to point me in the right direction... E.g. tutorial or an example. I would be very grateful./editI found this, after some really hard searching:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title></head><body><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0"> <tr>   <td colspan="2"><?php include('top.html'); ?></td> </tr> <tr>   <td width="30%"><?php include('menu.php'); ?></td>   <td width="70%"><?php if ( isset($HTTP_GET_VARS['news'])) {include('main.html'); }else if ( isset($HTTP_GET_VARS['page1'])) {include('page1.html');}   else {include('wrongpage.html');} ?></td> </tr></table></body></html>

and you can put to you navigation menu links like:http://yourpage.com/?newshttp://yourpage.com/?page1
Will that, of course after a little modifying (tables etc.) work for me as well?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...