Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-28-2004, 01:43 PM   #1
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
Website Template

I want to create a website template. Instead of linking to an completely different page it would only change the one section of the current page to whatever the link said to change and not have to reload the graphics. So if I wanted to change the logo at the top I would only have to change the template. I have tried CSS but how would you do it, only change the one section, or frame in HTML, to whatever you want, or is there another way?

^fo

EDIT: See the next post

Last edited by foolishone; 12-28-2004 at 07:10 PM.
foolishone is offline   Reply With Quote
Old 12-28-2004, 05:17 PM   #2
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I want to keep the navigation and top "frame" the same without reloading but only change the body when a link is click on.

Last edited by foolishone; 12-28-2004 at 07:10 PM.
foolishone is offline   Reply With Quote
Old 12-28-2004, 07:28 PM   #3
Member (8 bit)
 
Mhollinr's Avatar
 
Join Date: Dec 2002
Location: Grand Rapids, MI
Posts: 144
If you set up a page using frames, when you add a hyperlink just tell it where you want it to open - new window, parent frame, same frame, whole window or the name of the frame you want it to open in.

I've only used MS Front Page, but when you set up a hyperlink it gives you the option of where/how you want the link to open.
Mhollinr is offline   Reply With Quote
Old 12-28-2004, 08:08 PM   #4
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I was thinking that too, I guess I will just have to be patient and deal with frames.
foolishone is offline   Reply With Quote
Old 12-29-2004, 09:31 AM   #5
Member (9 bit)
 
MulderMan's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 362
Send a message via AIM to MulderMan
if you have any experiance with PHP or a PHP enabled server, that would be a great deal of help. this tutorial will give you some more information - http://www.phpfreaks.com/tutorials/8/0.php
MulderMan is offline   Reply With Quote
Old 12-29-2004, 09:35 AM   #6
PCMech: Saving Lives
 
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
You could just use a couple of Server Side Includes if that is supported by your server and PHP is not. There are also other ways (without SSIs) I can think of using ASP if you have ASP support.
__________________
WhatsThisBoxFor? is offline   Reply With Quote
Old 12-29-2004, 10:26 AM   #7
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
PHP would be the easiest way here - or some sort of server side program. The URL would just change to whatever page you want it to, but the "content" is the only thing changed.

http://www.php.net/urlhowto.php

Another possibility is just simple. Say you have the title banner URL as something like "http://www.website.com/image.gif", then what you can do there is to physically change the content of the file image.gif. So in other words, the page will still be loading the "image.gif", except to the eye, the gif file looks different.

kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 12-31-2004, 09:32 PM   #8
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I did pick the cheapest server I could find, and it doesn't support really anything, no pHp, ASP, SQL, PERL, no Dreamweaver/MSFP or Coldfusion. I have been thinking of changing for awhile now, so I will just have to buck it up and do it.

^fo

EDIT:I checked : do support SSI, CGI and PERL, the latter are no help to me here, I don't think?....well come to think of it, what are they? I think I could briefly define PERL, maybe.

Last edited by foolishone; 12-31-2004 at 09:38 PM.
foolishone is offline   Reply With Quote
Old 01-01-2005, 05:54 AM   #9
PCMech: Saving Lives
 
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
From my knowledge SSI is Server Side Include, basically it allows you to include a page into another page. This can be used as templates:
HTML Code:
<!--#include file="fileyouwanttoinclude.html" -->
Your Content Here
<!--#include file="anotherfileyouwanttoinclude.html"-->
This would include a common page, fileyouwanttoinclude.html, at the top of the page. This can contain the and so on, if you want. In this file if you have the logo, and graphics and other common content for your pages. Then you put your individual content for the page, and end off with another include (which is not necessary), which finishes off the page, maybe with copyright and stuff. If you change the logo in anotherfileyouwanttoinclude.html all pages with it included in will be affected. The example above is only a basic example, you might want to have code before you include it. Also - including a file is just like copy and pasting it, there is no need to have ... in each one, just the code you want to include.
WhatsThisBoxFor? is offline   Reply With Quote
Old 01-01-2005, 12:23 PM   #10
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
How would it know where I want the content?


Here, I just threw this together, how would it know where to put the content? Similar to frames, you just specify a "div" on the page?

http://getlaughing.com/sample.html

(red stays, when you click on a link you it only changes the content. So if I wanted to add on option on the left navigation bar, I would have to only change the respective file.)
foolishone is offline   Reply With Quote
Old 01-01-2005, 02:31 PM   #11
Member (9 bit)
 
MulderMan's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 362
Send a message via AIM to MulderMan
theres info on where to break the pages up and parse content here http://www.phpfreaks.com/tutorials/8/0.php - just replace the php includes code with the SSI include. make sure you end your files .shmtl
MulderMan is offline   Reply With Quote
Old 01-02-2005, 03:33 PM   #12
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
I just got around to trying what you said and it worked!!! It "concatanated" the two files perfectly!!! Thank You!!!! Can guarantee there will be more questions to come.
foolishone is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:14 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2