A 'Print This Page' Script Using the MS-XMLHTTP object and Regular Expressions
2458A 'Print This Page' Script Using the MS-XMLHTTP object and Regular Expressionshttp://www.4guysfromrolla.com/webtech/052701-1.shtmlarticle 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.ASP > Tips and Tutorials > Content ManagementOct 10, 2006
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.
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.
This code formats pages of a web site dynamically, basing the layout, colours and formatting contained in an HTML template file which some custom tags we've defined. Running a web site from a template in this way has a number of advantages we'll look at later.
Did 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.
Imagine a simple news site that two different writers update twice a day. Without any content management system, the writers would have to download the source code for the current page, add their news, re-upload the page, and then let the other writer know the page is updated so they won't overwrite the changes. For a larger site, such as Enfused.com or WDVL where news is updated at all hours of the day, and longer content is added on a semi-regular basis, this system will not work
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.