Hi all:
Please excuse a newbie question but I could use some assistance.
I have a large number of "help pages" for an application which we provide.
Within those pages are sections of code that I want to conditionally comment
out. These sections include HTML and Javascript elements. A sample:
<p>For more information <script language="javascript">advancedHelp("
<strong>Click Here</strong>","13.htm");</scriptto launch the help page.
I've tried to define functions optionalHelpStart and optionalHelpEnd which
would either be defined as empty (if we want the code above to be executed)
or as follows if we wanted to hide it:
function optionalHelpStart()
{
document.write ("<!--");
}
function optionalHelpEnd()
{
document.write<"-->");
}
and then recoding as follows:
<script language="javascript">optionalHelpStart();</script>
<p>For more information <script language="javascript">advancedHelp("
<strong>Click Here</strong>","13.htm");</scriptto launch the help page.
<script language="javascript">optionalHelpEnd();</script>
but this doesn't work (even if I put it all on a single line).
Is there a simple way that I can get this to work? The major problem is that
we've got two products, one which supports the "advancedHelp" files and one
that does not and we don't want to maintain two sets of files (there are
something like 20 of them in each of 9 languages so far).
Thanks in advance.
- Dave