IBM Support

IC60353: TEXT REPLACEMENT USING LINK CAUSE JAVASCRIPT ERROR AND FAILS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • There is a problem using the text replacement feature in
    HATS.  When you try to replace some text with a link in the
    text replacement tool the page displays correctly but when you
    click on the new link the browser throws a JavaScript error and
    the link does not work.
    
    After looking into the error and the code that the text
    replacement tool is generating I found the problem.
    
    Here is an example of the code generated by HATS:
    <a accesskey="HATSForm" href="javascript:ms('[pf12]',
    HatsForm);" class="HATSLINK" name="[pf12]">Cancel</a>
    
    The error is that the single quotes around the string HatsForm
    in the ms command are missing.  As a result the JavaScript is
    interpreting the HatsForm as a variable instead of a string.
    

Local fix

  • Manually add the quotes around HatsForm in the ms command.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Developers using text replacement to         *
    *                 replace text with HTML links.                *
    ****************************************************************
    * PROBLEM DESCRIPTION: Replacing host screen text with an      *
    *                      HTML link does not work at runtime.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Toolkit generates incorrect HTML when text replacement is
    used to replace host screen text with an HTML link.
    

Problem conclusion

  • Incorrect HTML is generated when using text replacement to
    replace text with an HTML link.  For example, this HTML code
    is generated when using text replacement:
    
    <a accesskey="HATSForm" href="javascript:ms('[pf12]',HatsForm);"
      class="HATSLINK" name="[pf12]">Cancel</a>
    
    The string HatsForm is a String, not a variable and,
    therefore, must be enclosed in single quotes.  Without the
    single quotes around HatsForm, the page throws a JavaScript
    error during runtime.
    
    The HATS Toolkit code was changed to generate the correct HTML
    code.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC60353

  • Reported component name

    RATL HATS FOR 5

  • Reported component ID

    5724U6800

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-03-11

  • Closed date

    2009-04-16

  • Last modified date

    2009-04-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • HATSSTUD
    

Fix information

  • Fixed component name

    RATL HATS FOR 5

  • Fixed component ID

    5724U6800

Applicable component levels

  • R710 PSY

       UP

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXKAY","label":"IBM Host Access Transformation Services"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
16 April 2009