4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Attach HTML pages together
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
t94xr.net.nz
Junior WebHelper
Junior WebHelper


Joined: 05 Mar 2003
Posts: 4
Location: Taupo NZ

PostPosted: Sat May 03, 2003 7:46 am (14 years, 6 months ago) Reply with QuoteBack to Top

Can someone tell me how to attach html pages together?
is there some sort of JS or DHTML for it???

I want to attach header.htm to index.htm??

________________________________
t94xr
OfflineView User's ProfileFind all posts by t94xr.net.nzSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat May 03, 2003 7:52 am (14 years, 6 months ago) Reply with QuoteBack to Top

Attach as in what? Load index.htm and have it include header.htm? As far as I know, the best way to do that is SSI (Server Side Includes) or PHP.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Sat May 03, 2003 7:05 pm (14 years, 6 months ago) Reply with QuoteBack to Top

Do you want to put header.htm at the top of index.htm and you dont mind frames you could use an Inline Frame. Example,
Code:
<iframe
 name="header" src="header.htm"
 frameborder="0" scrolling="no" width="700" height="100" marginwidth="0"
 marginheight="0">

You would need to change the height and width but might work for what you are trying to do. If you want the frame to be at the very top just put the code at the top of the body section in index.htm. You might also need to add marginheight="0" to the body tag.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
verto
Senior WebHelper
Senior WebHelper


Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA

PostPosted: Sun May 04, 2003 1:41 am (14 years, 6 months ago) Reply with QuoteBack to Top

If you only know HTML and aren't ready to learn enough to work a little bit with some new tags or languages, then the easiest way might just be to use an HTML frameset, and there are tons of tutorials on the Web you can find to show you how that's done. Smile

Both SSI (which Daniel mentioned) and framesets have been used for a long time, and have good browser support. However, iframes (which Kdawg mentioned) are browser-dependent, or in other words, won't work in all browsers, so may not work for you, depending on which browsers you want to support.

SSI and PHP are server-dependent, so you'll have to find out if your host supports them. PHP includes are extremely easy, and in most cases much easier than HTML framesets once you've learned the basics of PHP, which isn't too hard really. Check some of this site's tutorials for a quick intro to PHP or just to check it out. They might easily be all you need to get going. Wink

A Couple of 4WH PHP Starter Tutorials:
What Is PHP?

The Basics

________________________________
>>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :.
OfflineView User's ProfileFind all posts by vertoSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun May 04, 2003 8:44 am (14 years, 6 months ago) Reply with QuoteBack to Top

verto, just one thing: SSI doesn't need "good browser support", since it's server-side Wink

Other than that, a very helpful post Very Happy

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
verto
Senior WebHelper
Senior WebHelper


Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA

PostPosted: Sun May 04, 2003 6:45 pm (14 years, 6 months ago) Reply with QuoteBack to Top

ha, you caught me there, Daniel, thank you. Smile

I guess you could almost say that SSI has 'perfect browser support,' much like PHP and other back-end stuff, if it weren't for that 'pesky' Lynx browser some folks still use Shocked (jk).

Now we just have to wait for t94xr.net.nz to post that (s)he already found out how to make hyperlinks on another site, eh? Smile

________________________________
>>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :.
OfflineView User's ProfileFind all posts by vertoSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun May 04, 2003 6:49 pm (14 years, 6 months ago) Reply with QuoteBack to Top

Knowing t94xr.net.nz from another forum, and as a phpBB I'm kind of puzzled as to why (s)he posted this in the first place - seems like (s)he would already know how about PHP and things like that... Question

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Sun May 04, 2003 10:08 pm (14 years, 6 months ago) Reply with QuoteBack to Top

Daniel wrote:
Knowing t94xr.net.nz from another forum, and as a phpBB

t94xr.net.nz is a message board eh! Wink Razz

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon May 05, 2003 5:52 am (14 years, 6 months ago) Reply with QuoteBack to Top

Yes, it is, but I know him/her from somewhere else Razz

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
verto
Senior WebHelper
Senior WebHelper


Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA

PostPosted: Tue May 06, 2003 1:55 am (14 years, 6 months ago) Reply with QuoteBack to Top

SfCommand wrote:
t94xr.net.nz is a message board eh! Wink Razz

They also seem to be one of those 'rambling' type posters that sow their 'wild seed' and never look back. Rolling Eyes Wink

A bit disappointing to see them ignore this thread and our replies, but then go posting in a different thread on 4WH. Laughing

________________________________
>>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :.
OfflineView User's ProfileFind all posts by vertoSend Personal Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Tue May 06, 2003 2:36 am (14 years, 6 months ago) Reply with QuoteBack to Top

Ya framesets would be more browser complient but I think that iframes are eaiser. iframes work in NS and IE, those are the only two browsers I care about.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
verto
Senior WebHelper
Senior WebHelper


Joined: 14 Jan 2002
Posts: 220
Location: Cambridge MA USA

PostPosted: Tue May 06, 2003 3:03 am (14 years, 6 months ago) Reply with QuoteBack to Top

Uh, huh, iframes are a little less code than frames, though PHP would be even less. ;0

Which versions of NS and IE do iframes, d'ya know? Pretty sure NN4 doesn't, which they prolly don't care, but how about NS 6?

________________________________
>>>>>>>>>>>>>
GENERAL DISCLAIMER:This disclaimer may be void where null in all cases unless explicitly not unprohibited or (p)re-exclusively assigned by sufficient presedimentation on behalf of every non-interested party to wit (or so it was said).
:::
.: :. . : :....: :.: .: :. verto .: :. . : :....: :.: .: :.
OfflineView User's ProfileFind all posts by vertoSend Personal Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Tue May 06, 2003 3:11 am (14 years, 6 months ago) Reply with QuoteBack to Top

I know NS6 does.
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
SfCommand
Senior WebHelper
Senior WebHelper


Joined: 10 Nov 2002
Posts: 143
Location: UK

PostPosted: Tue May 06, 2003 10:02 am (14 years, 6 months ago) Reply with QuoteBack to Top

And of course (being superior Very Happy) mozilla also supports iframes Smile

________________________________
Miguel

http://community.34sp.com
http://www.miguel.me.uk | http://www.sfcommand.co.uk | http://www.ssdg.org.uk
OfflineView User's ProfileFind all posts by SfCommandSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue May 06, 2003 3:04 pm (14 years, 6 months ago) Reply with QuoteBack to Top

verto wrote:
A bit disappointing to see them ignore this thread and our replies, but then go posting in a different thread on 4WH. Laughing


t94xr.net.nz's last post, before this one, was on March 5th... Question

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   


Go to page 1, 2  Next

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.088625 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme