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

**URL:** <https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064>\
**Category:** NYSpeed Off Topic\
**Created:** [April 20, 2006, 9:57am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064 "2006-04-20T09:57:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 20, 2006, 9:57am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/1 "2006-04-20T09:57:49Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 20, 2006, 9:59am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/2 "2006-04-20T09:59:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dozr](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dozr](https://forums.speedlife.net/u/dozr)\
**Post date:** [April 20, 2006, 12:48pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/3 "2006-04-20T12:48:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jrex](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/jrex/32/7232_2.png) [@jrex](https://forums.speedlife.net/u/jrex)\
**Post date:** [April 20, 2006, 1:15pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/4 "2006-04-20T13:15:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![duck](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/duck/32/7183_2.png) [@duck](https://forums.speedlife.net/u/duck)\
**Post date:** [April 21, 2006, 7:34am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/5 "2006-04-21T07:34:40Z")

</div>

i like SSI cuz its easy

---

<div class="post-metadata">

**Author:** ![tpgsr](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/tpgsr/32/7374_2.png) [@tpgsr](https://forums.speedlife.net/u/tpgsr)\
**Post date:** [April 21, 2006, 9:25am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/6 "2006-04-21T09:25:45Z")

</div>

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](http://www.laxbuffalo.com) Look around the source, the code block that you would be looking at is “ajaxpage()”

---

<div class="post-metadata">

**Author:** ![dozr](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dozr](https://forums.speedlife.net/u/dozr)\
**Post date:** [April 21, 2006, 1:35pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/7 "2006-04-21T13:35:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tpgsr](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/tpgsr/32/7374_2.png) [@tpgsr](https://forums.speedlife.net/u/tpgsr)\
**Post date:** [April 21, 2006, 1:41pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/8 "2006-04-21T13:41:01Z")

</div>

> [@dozr](#):
>
> 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!

---

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 21, 2006, 2:21pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/9 "2006-04-21T14:21:14Z")

</div>

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 🙂

unless anyone knows of some nice coding programs?

---

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 22, 2006, 11:22pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/10 "2006-04-22T23:22:44Z")

</div>

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

```auto
&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 🙂

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

---

<div class="post-metadata">

**Author:** ![dozr](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dozr](https://forums.speedlife.net/u/dozr)\
**Post date:** [April 23, 2006, 10:50am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/11 "2006-04-23T10:50:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nixad](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nixad](https://forums.speedlife.net/u/nixad)\
**Post date:** [April 23, 2006, 10:53am UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/12 "2006-04-23T10:53:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 23, 2006, 4:44pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/13 "2006-04-23T16:44:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dozr](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dozr](https://forums.speedlife.net/u/dozr)\
**Post date:** [April 23, 2006, 10:30pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/14 "2006-04-23T22:30:46Z")

</div>

> [@nixad](#):
>
> PHP is the only launge I know that can combine without using frames.

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

---

<div class="post-metadata">

**Author:** ![HotRodKid](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/hotrodkid/32/7609_2.png) [@HotRodKid](https://forums.speedlife.net/u/HotRodKid)\
**Post date:** [April 23, 2006, 11:17pm UTC](https://forums.speedlife.net/t/question-combining-2-web-pages-into-one-w-o-using-frames/11064/15 "2006-04-23T23:17:26Z")

</div>

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 🙂
