ICEfaces
  1. ICEfaces
  2. ICE-8157

Use window.addEventListener/window.attachEvent to register window callbacks

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.RC1, 3.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Supported browsers
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Use window.addEventListener/window.attachEvent to register window callbacks. This is to avoid having the callback overwritten when window.on* properties are updated.

        Activity

        Mircea Toma created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Hide
        Mircea Toma added a comment -

        It should be noted in the Wiki documentation that if you want to add any of your own scripts to window.onload, onunload, onbeforeunload, etc. you should use the window.addEventListener or window.attachEvent (IE before version 9).

        Show
        Mircea Toma added a comment - It should be noted in the Wiki documentation that if you want to add any of your own scripts to window.onload, onunload, onbeforeunload, etc. you should use the window.addEventListener or window.attachEvent (IE before version 9).
        Mircea Toma made changes -
        Salesforce Case []
        Fix Version/s 3.1.0.BETA2 [ 10336 ]
        Ken Fyten made changes -
        Fix Version/s 3.1.0.RC1 [ 10337 ]
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s 3.1.0.BETA2 [ 10336 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29512 Thu Jun 14 12:14:17 MDT 2012 mircea.toma ICE-8157 Modified window or document event listener registration functions to use addEventListener/attachEvent methods to avoid the overwriting that can occur when using the window.on**** properties.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js
        Commit graph MODIFY /projects/bridge-support/src/main/javascript/window.js
        Hide
        Mircea Toma added a comment -

        Modified window or document event listener registration functions to use addEventListener/attachEvent methods to avoid the overwriting that can occur when using the window.on**** properties.

        Show
        Mircea Toma added a comment - Modified window or document event listener registration functions to use addEventListener/attachEvent methods to avoid the overwriting that can occur when using the window.on**** properties.
        Hide
        Mircea Toma added a comment -

        Added warning/usage notes for ice.onLoad and ice.onUnload functions in the Wiki page http://wiki.icesoft.org/display/ICE/JavaScript+Client+API.

        Show
        Mircea Toma added a comment - Added warning/usage notes for ice.onLoad and ice.onUnload functions in the Wiki page http://wiki.icesoft.org/display/ICE/JavaScript+Client+API .
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Ken Fyten made changes -
        Issue Type Improvement [ 4 ] New Feature [ 2 ]
        Salesforce Case []
        Ken Fyten made changes -
        Issue Type New Feature [ 2 ] Improvement [ 4 ]
        Salesforce Case []
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: