question - combining 2 web pages into one w/o using frames

alrighty, so im over hear slowly learning how to program a website

so far im decent with editing HTML and CSS, but i dont think ive found how to do what i want

so far im up to 26 seperate pages of info, and all but one of those pages has the same header, the last page only has a partial header (home , gallery, ect row )

i would like to only have to edit a few text / html files anytime i want to edit the headers

how do i do this ? javascript ?

mostly this section is what i care about, but i i can include the tabs just above it in the same codeing, that would be sweet too

you would have to use a backend programming language such as .ASP or .PHP, etc. You can use an SSI (server side include), or dreamweaver will do it with some type of template system however it probably sucks.

PHP would be good for what you’re looking to do, and is easy to edit later on down the road…

i like SSI cuz its easy

i use a new xml/javascript variant called ajax to effectivly do what you are looking for on one of my pages. What i am able to do is load a .html .php etc… page into a <div> tag I call that tag container, and build the page around it. When you click a tab, it loads the container. see it in action at www.laxbuffalo.com Look around the source, the code block that you would be looking at is “ajaxpage()”

there is no reason to use ajax for something that can be done easily by using an SSI…

ok, true that you can just load the page header as a ssi, but does he have that capability?

And in my case, is it possible to load a page into a <div> using an ssi… if so, can you show me an example, it may make my life easier!

help section of the providers website says ssi is not supported at this time

im looking into php at the moment, but im only decent with modifying html, so scratch coding php is still a few years away for me :slight_smile:

unless anyone knows of some nice coding programs?

managed to finaly get it to work

php headers refused to work for me no matter what i did, despite the fact that the php image rotator i use worked fine for me

i decided to switch over to javascript, and after much futzing around i found a html>javascript converter that solved my lack of coding knowledge

created a nav file, a parts file, included the corresponding css with each one and threw the following scripts into the index page

&lt;script language="javascript" type="text/javascript" 
  src="nav.txt"&gt;&lt;/script&gt;

&lt;script language="javascript" type="text/javascript" 
  src="parts.txt"&gt;&lt;/script&gt;

yay :slight_smile:

now i just have to upload the above code to 26 pages :banghead:

you would have to find out what server software your hosting provider is using, and that would tell you which server language you could use. (.NET, .PHP, .ASP, etc)

For example, if your host is running linux boxes supporting PHP, you could just change your file extentions to *.php and use SSI’s. You do not need to do anything else to the pages that has anything to do with PHP.

Don’t use JS for something like this… it is not necessary. For one, search engines will not see it, any users without JS enabled will be blocked from the content, and it is a scripting language, which should not be used simply to replace the simple function of an include.

Where are you hosting? Find out what Server Side Languages your host supports.

PHP is the only launge I know that can combine without using frames.

ill figure out how to do the php eventualy i guess, id prefer something the search engines could find, but i couldnt figure out what the prob was with the php coding, or if it was a prob with the provider

you can use includes in pretty much any server side language… PHP, ASP, .NET, CF, Ruby, etc.

i managed to get php working

the second section had like 4 apostrophe’s in it and i didnt realize that was a problem

its fixed now tho :slight_smile: