IBM Support

PK71379: JAVASCRIPT ERROR IS THROWN WHEN PRESSING THE CTRL KEY ON A PAGE WHERE AN IFRAME TARGETS A DIFFERENT DOMAIN.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JavaScript error is thrown when pressing the Ctrl key on a page
    where an iframe targets a different domain.
    This problem was reported as PK57821, but the fix in PK57821 is
    incomplete.
    
    PK57821: JAVASCRIPT ERRORS ARE THROWN WHEN PRESSING THE CONTROL
    KEY ON A PAGE WHERE AN IFRAME TARGETS A DIFFERENT DOMAIN.
    http://www-1.ibm.com/support/docview.wss?rs=688&uid=swg1PK57821
    
    Steps:
    1. Deploy the Web page portlet to a page.
    2. Set a different domain site from WP on the Web Page portlet.
    Ex.
    Address of WP: http://portal.domain.com:10038/wps/portal
    Address of the target site: http://www.ibm.com
    3. Open the page and press the Ctrl key.
    
    6.0.1.3
    The following JavaScript error occurs.
    line: 24
    character: 1
    error: Access denied
    code: 0
    
    6.0.1.1 (applied PK57821)
    The following JavaScript error occurs.
    line: 126
    character: 13
    error: Access denied
    code: 0
    

Local fix

  • The CtrlKeyDepressed=false block also needs to be wrapped with
    try/catch.
    
    DND.js on WP 6.0.1.3
    try{
    window.frames[i].document._CtrlKeyDepressed=false;
    }catch(err){
    // do something with the error
    }
    };}if (document._DNDBroker.oldOnKeyUp != null) {
    
    DND.js offered by PK57821
    for (var i = 0; i < window.frames.length; i++) {
    try {
    window.frames[i].document._CtrlKeyDepressed = false;
    } catch(err) {
    // do something with the error
    }
    

Problem summary

  • After installing PK57821, when the Ctrl key is pressed in a port
    created with the web page portlet from a web page that exists in
    domain, (eg. www.ibm.com) Javascript errors still occur.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK71379

  • Reported component name

    WEBSPHERE PORTA

  • Reported component ID

    5724E7600

  • Reported release

    601

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-09-03

  • Closed date

    2008-09-16

  • Last modified date

    2008-11-05

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

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

Fix information

  • Fixed component name

    WEBSPHERE PORTA

  • Fixed component ID

    5724E7600

Applicable component levels

  • R60A PSY

       UP

  • R60E PSY

       UP

  • R60G PSY

       UP

  • R601 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHRKX","label":"WebSphere Portal"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 November 2008