changing the body but nothing else

liunx

Guest
I have a question that seems more tricky to explain than get an answer. I have a website that is 3 tables in height. with 3 columns wide (200px - 600px - 200) each table. Now the top table is a header the bottom is the footer and the far left of the middle table is the nav bar, these i do not want to refresh when someone clicks on a navigation bar to another part of the site. If your on the home page, and you click the pictures navigation bar, then i would like ONLY the body or (middle cell of the middle table to change). I don't know if you can do this without using Frames, which i do not know how to program.<br />
<br />
Is it possible and how? The nav bar for say pictures would be of course pictures.htm (can i change that to pictures.txt or php and have that take that middle cell <td> and replace it with the pictures information?<br />
<br />
:confused: Anthony<!--content-->no it isnt possible without frames...unless you use javascript, but its really pointless and not very productive. it has to reload the whole page, navigation and all<!--content-->Have you considered using server-side includes? You'd have to ask if your webhost will allow them, of course. Some won't, but Entimp did a couple of tutorials on them here:<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25590">http://www.htmlforums.com/showthread.ph ... adid=25590</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25616">http://www.htmlforums.com/showthread.ph ... adid=25616</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=25644">http://www.htmlforums.com/showthread.ph ... adid=25644</a><!-- m --><br />
<br />
Basically what you do is divide the page into sections and create a page for each section. I'm working on redoing my site like that now and the majority of my html pages look like this:<br />
<br />
<html><br />
<!--#include virtual="../folder/header.asp" --><br />
<!--#include virtual="../folder/nav.asp" --><br />
<!--#include virtual="../folder/content.asp" --><br />
</html><br />
<br />
To add a footer, just add one more line to indicate the addition. It's not hard. <sigh> Just time consuming doing the first few pages. I'm not sure if you'd consider it "cheating" or not, but I did the first page up in Dreamweaver, adding comments on where I wanted the section breaks to start and stop. Then I went from "section start" to "section end", copied the information to SimpleText and saved it as an .asp file. Those were my basic 'template' pages and I just changed what was needed to make different header, navigation and content pages. Didn't even need Dreamweaver after that. I did something like 30 pages in a few hours, just 'cut and paste' the information from the old pages. <br />
<br />
Adding new pages will be even easier because I can save my original files as "file.asp", create a main page for them using the above template, and change the appropriate nav page to reflect the addition. <br />
<br />
That's about the only way I can see to get around having to change entire pages.<br />
<br />
Peg<!--content-->Yes i was working on developing the server side includes currently but my main objective is to NOT refresh (reload) the page at all.<br />
<br />
I will have a 300+kb movie on the top left -- plus a possible 300+kb movie onmouseover on the top center.<br />
<br />
If i have this and someone clicks on a different page within the website -- it would create more bandwidth and that is what i was trying to avoid.<br />
<br />
See i don't have a problem with creating or altering my work. The issue is that i only want the body to change and keep the rest of the work on the page to stay static. Server Side Includes do Refresh or reload the entire page and i don't want to do that.<br />
<br />
=:O <br />
<br />
Anthony<!--content-->It seems to me like you could use an iFrame for the body, and just change that right?<br />
<br />
Look at <!-- m --><a class="postlink" href="http://www.dikaios.net/lowband">http://www.dikaios.net/lowband</a><!-- m --><br />
<br />
I was playing with iframes on that site. The Nav bars don't reload, just the content. And, in the players page, the names don't reload either. Just the player info. It's pretty simple...look at the code.<br />
<br />
Aaron<!--content-->You'll definately need an iframe or frames to do that. <br />
<br />
The server-side includes can also be utilised just to save you work when you have the same piece of code on lots of different pages too.<!--content-->Oooo, 600+k of movie per page... a bit high, I think. <shrug> But that's just me.<br />
<br />
Yeah, if you're including something like that, iframes might be the best route to go. Frames can be a royal pain.<br />
<br />
Peg<!--content-->Hey AaronCampbell, giz, Pegasus. I just wanted to say thanks for your answer on the iframe issue. That so far is working wonders and is doing exactly what we all talked about. I haven't found a downfall yet so i must admit that i am happy LOL! -- When i am done with my BASIC haha website i will let you know so you can see.<br />
<br />
Thanks again.<br />
<br />
Anthony<!--content-->
 
Back
Top