Solved

How to use header and footer without generating the pages (e.g. with ASP) for a CHM help file?

Posted on 2009-07-01
1
237 Views
Last Modified: 2012-05-07
For a long time now I've produced the HTML for my CHM help using ASP.
I then copy the output from the ASP into HTML files.
However, this is very time consuming if I want to make a change to my header or footer.

At the moment I use variables in my header and footer, to supply it page names and links.

How can I do this more easily?
0
Comment
Question by:mindwarpltd
1 Comment
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 24794641
If you place tags identifying your header and footer by id (<span id="MyHeaderContent">) then you can write a script that goes through multiple files, uses getElementByID("MyHeaderContent"), and changes the contents as you wish.

--
Alain
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question