Duplicating text automatically for each page

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: May 2005
Posts: 1
Reputation: taparca is an unknown quantity at this point 
Solved Threads: 0
taparca taparca is offline Offline
Newbie Poster

Duplicating text automatically for each page

 
0
  #1
May 27th, 2005
I am totally self taught in html and a pure novice. I volunteer with a non-profit and I update their existing website. The website has a "Child of the Month" feature which appears on every page of the site. This feature needs to be changed monthly. I have been doing it manually page by page, but I am wondering if there is code that can be placed on the index page that would duplicate the feature on each page??? I am in the process of changing each page now and I am hoping there is a quicker way to do this. The website is http://www.tmihope.org if you want to see what I am talking about. Thanks for any help! Tammy
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Duplicating text automatically for each page

 
0
  #2
May 27th, 2005
You can do this with a Server Side Include (SSI). The syntax depends upon what server you are running. Is the site run with ISS, Apache? Does the server support PHP, ASP, or what?

A purely "client-side" technique is to write the content of that section of each page via a JavaScript, using document.write(). Include that JavaScript on every page.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,278
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 494
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Duplicating text automatically for each page

 
0
  #3
May 29th, 2005
Another option is to use frames but not everybody likes to use them...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2261 | Replies: 2
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC