2463How the "Print this Page" Script Workshttp://4guysfromrolla.com/webtech/080600-1.shtmlDid you know that you can turn 4Guys articles into printer-friendly formats? (Give it a try! Click the printer icon in the upper-right hand corner of the article text, or, to view a printer-friendly version of this article, click here.) The printer-friendly version simply removes the links on the left, the header graphics, and the advertising creating a nice, neat, easily printable format.ASP > Tips and Tutorials > Content ManagementOct 10, 2006
This type of content is often used by small businesses that don't always have the resources to create regularly updated content, but want to start syndicating, as in theory you could create your database of tips in a day then sit back for the rest of the year!
The technologies used are ASP (Active Server Pages), HTML, JavaScript and a Microsoft Access database. If you are not familiar with ASP you may find this article a little difficult to understand, however there are working examples at the bottom of the page and an e-mail contact for questions.
article deals with two not-so-commonly discussed topics. The first is using Microsoft's XMLHTTP component to perform an HTTP request. To learn more about how to use XMLHTTP for this purpose, be sure to check out this FAQ. This article also utilizes regular expressions to remove delimited chunks of text. To learn more about regular expressions be sure to check out the Regular Expressions Article Index.
This system allows you to assign custom errors to common problems that you may experience with your web site and create a centralized error page to display custom errors. This one is so easy, you can implement it into any existing system just by adding a couple lines of code to each script. Here are a couple of examples:
We are going to make an ASP page that pull some of it's content from a text file. And we are going to ad a simple form where you can edit the content of that text file. It's a simple solution for webpages that doesn't have the luxury of a database.
You can use this script for a number of functions (news, pricelist, special offers etc.), and we are going to pretend that we are making a site for the used car salesman "Sleezbag" Bob. Every week Bob has got a special offer on a crappy old car. Now he will be able to change the special offer each week himself.
Why should visitors to your web site be forced to view its pages in any one particular way? This simple font customization sample illustrates how easy it can be to let your visitors pick whatever settings they prefer. It covers the basic process of letting a user pick their settings, previewing the resulting effect, and then saving their configuration for future visits.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.