General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion How to insert an ampersand (&) in a file to be used as a footer for webhelp

  • Anonymous

    How to insert an ampersand (&) in a file to be used as a footer for webhelp

    Participants 1
    Replies 2
    Last Activity 12 years, 1 month ago

    Hi

    If the footer file I use when generating webhelp includes an '&' character, the file is not included by the Webhelp generator.

    For example if the following line of script is in the footer file, that file does not get included:

    function mail(){parent.location = 'mailto:[email protected]?Subject=Feedback &body= some text'
    ;}

    Remove the '&' and it does get included, but of course the mailto line is not now what I want.

    I have tried replacing the & with %26, but the replacement of %26 by '&' comes in too late and  the '&' becomes just another part of the mail subject.

    How should I specify the ampersand in the footer file?

    Best regards,|
    Pete

    Reply

    pebraham

    Reply to: How to insert an ampersand (&) in a file to be used as a footer for webhelp

    For those who had the same problem: surround the javascript code with



    or even:

    Reply

    Su-Laine Yeo

    Reply to: How to insert an ampersand (&) in a file to be used as a footer for webhelp

    Ah, that's a useful idea. Thanks for sharing it!

    Su-Laine

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support