473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Automatic Update On HTML Pages

Hello,

I'm new to this forum. Sorry if this post is under the wrong category. I'm working on a site for my company. Its a relatively basic site with company info, etc.

We have a "news column" on each of the pages (7 pages total). Here is my problem, whenever we have to add the latest news I have to go into each individual page and add in the new information.

So, how can I make this an automated process? Where I would only have to add the new info once and each of the pages will update automatically. I'm assuming its something outside of the HTML. This would save me so much time and effort.

Thanks in advance!
Aug 3 '07 #1
3 2030
drhowarddrfine
7,435 Expert 4TB
I'm heading out the door, and can give an example later, but what you might want is a "server side include" (SSI). Your site may not be big enough to be worth consider a "content management system" (CMS).
Aug 3 '07 #2
jhardman
3,406 Expert 2GB
I'm heading out the door, and can give an example later, but what you might want is a "server side include" (SSI). Your site may not be big enough to be worth consider a "content management system" (CMS).
I agree with Larry and Curly. Go for a SSI. Basically this means that each page includes a line like this: [html]<!-- #include virtual="/news.inc" -->[/html] and the "news.inc" page is just a brief file including the news of the day. It will just be pasted into the HTML page pulled up, so code appropriately.

the only thing you need to do to make this work is make sure includes are activated on your server. I believe the default file extension for html pages that have SSI is ".shtml". It is possible that this is already turned on on your server and changing the file extension will make it work. It is also more than likely that you can make your server check for includes on any html page regardless of extension, but this will make the server run slower, so I advise against it. Let me know if this helps.

Jared
Aug 3 '07 #3
Thanks for the quick responses guys!

Well, I've looked into "SSI" and I'm pretty sure it will work for what I need to do. I've already tested my server, SSI is enabled, (to test this I put <!--#echo var="DATE_LOCAL"--> into the code of one of my pages, saved it as .SHTML and the current time and date showed up).

Using this line <!--#include virtual="myfile.txt" --> I should be able to create a News file and have it load up on each page. This will also be helpful in many many other ways like, nav bars, footers, ads, etc. Great... now i'm all excited over SSI.

I'll let you guys know how it turns out.

Thanks again!
Aug 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Creat ASP Page Automatic | last post by:
Hi; I want to ask you something very important for me .. how can i Create daynamic pages or static pages Automatic .??????????!!! i have a problem with my website i want Create page asp...
2
by: Creat ASP Page Automatic | last post by:
Hi; I want to ask you something very important for me .. how can i Create daynamic pages or static pages Automatic .??????????!!! i have a problem with my website i want Create page asp...
3
by: Todd Cary | last post by:
Some of my clients would like to have a way to update text and tables in their HTML pages without the need for or understanding of complicated updating programs. Does such a program exist? My...
6
by: Aaron Ackerman | last post by:
Is anyone familiar with that Automatic/Automated Update feature for .NET WinForms apps which essentially allow a user to hit a server for their data (even over the Internet) possibly and have their...
0
by: Terry Hancock | last post by:
I've been trying to use "happydoc" to document a source tree that I'm working on. It does pretty much what I want, except: Version 2.1: Creates a weird directory structure for the HTML pages...
4
by: Vincent Yang | last post by:
I'm using Access 2002. My database is in Access 2000 format. I'm designing a form to collect responses to a 40-item questionnaire. I can fit four list boxes on a screen, so I plan to have 11 tab...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
3
by: Michel Esber | last post by:
Hi all, DB2 V8 LUW FP 15 There is a table T (ID varchar (24), ABC timestamp). ID is PK. Our application needs to frequently update T with a new value for ABC. update T set ABC=? where ID...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.