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="javas cript">advanced Help("
<strong>Click Here</strong>","13.ht m");</scriptto launch the help page.
I've tried to define functions optionalHelpSta rt 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 optionalHelpSta rt()
{
document.write ("<!--");
}
function optionalHelpEnd ()
{
document.write< "-->");
}
and then recoding as follows:
<script language="javas cript">optional HelpStart();</script>
<p>For more information <script language="javas cript">advanced Help("
<strong>Click Here</strong>","13.ht m");</scriptto launch the help page.
<script language="javas cript">optional HelpEnd();</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 "advancedHe lp" 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
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="javas cript">advanced Help("
<strong>Click Here</strong>","13.ht m");</scriptto launch the help page.
I've tried to define functions optionalHelpSta rt 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 optionalHelpSta rt()
{
document.write ("<!--");
}
function optionalHelpEnd ()
{
document.write< "-->");
}
and then recoding as follows:
<script language="javas cript">optional HelpStart();</script>
<p>For more information <script language="javas cript">advanced Help("
<strong>Click Here</strong>","13.ht m");</scriptto launch the help page.
<script language="javas cript">optional HelpEnd();</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 "advancedHe lp" 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
Comment