Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
sections of code appear on every page but in a seperate document
Old 09-16-2007, 06:18 PM sections of code appear on every page but in a seperate document
Experienced Talker

Posts: 40
Name: james
Trades: 0
If I have a large section of code that will appear on every page of my site is there any way to put it in an external document so I only have to update it ounce instead of on everypage.
jamest is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-16-2007, 06:40 PM Re: sections of code appear on every page but in a seperate document
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Hey James,

What you're looking for is called a server-side include. You can do this with .shtml (server-side HTML), ASP, PHP, or possibly other languages (I don't know).

http://httpd.apache.org/docs/1.3/howto/ssi.html

You can skip through the setup stuff and go right to the include parts.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-16-2007, 06:59 PM Re: sections of code appear on every page but in a seperate document
Experienced Talker

Posts: 40
Name: james
Trades: 0
Isn't there a way to do this just by linking to an external html document like how you can link to a external css document.
jamest is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 07:28 PM Re: sections of code appear on every page but in a seperate document
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Isn't there a way to do this just by linking to an external html document like how you can link to a external css document.
Afraid not, it's not that simple.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-16-2007, 09:06 PM Re: sections of code appear on every page but in a seperate document
Experienced Talker

Posts: 40
Name: james
Trades: 0
ok i found another site that shows how to use server-side includes that I understood better, I will try these and see how it goes for me.

EDIT: Yay it works.

Last edited by jamest; 09-16-2007 at 09:11 PM..
jamest is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to sections of code appear on every page but in a seperate document
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85387 seconds with 12 queries