Tapestry 5
  1. Tapestry 5
  2. TAP5-416

Javascript error with IE and Window Prototype

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.15, 5.0.16, 5.0.17, 5.0.18
    • Fix Version/s: 5.1.0.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When using the Window Prototype js component (for instance from ChenilleKit) with IE, there is a javascript error when opening the window : "Style is null or isn't an object"

      Modifying the meethod getOffsetParent in prototype.js, l 2089, and replace

      while ((element = element.parentNode) && element != document.body )
      with
      while ((element = element.parentNode) && element != document.body && element != document)

      solves the issue. I know this is a Prototype issue, but since Tapestry 5 is due to be released, i think it ought to be dealt with.

        Activity

        Nicolas Charles created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.1.0.0 [ 12313428 ]
        Resolution Fixed [ 1 ]
        Hide
        David Rees added a comment -

        I'm affected by this bug in Prototype 1.6.0.3 which is shipped in Tapestry 5.0.18.

        Until 5.1.0.0 is shipped, what's the suggested workaround for this issue?

        Show
        David Rees added a comment - I'm affected by this bug in Prototype 1.6.0.3 which is shipped in Tapestry 5.0.18. Until 5.1.0.0 is shipped, what's the suggested workaround for this issue?
        Hide
        Howard M. Lewis Ship added a comment -

        Yes, get the new prototype.js and the scriptaculous JS files from Tapestry's SVN trunk.

        Copy then to a location in your web application context.

        Contribute to ApplicationDefaults, symbol tapestry.scriptaculous, as "context:/folder" (i.e., the web application context folder you copied the files to).

        Ta Da! Tapestry will use those files, not its built in files.

        Show
        Howard M. Lewis Ship added a comment - Yes, get the new prototype.js and the scriptaculous JS files from Tapestry's SVN trunk. Copy then to a location in your web application context. Contribute to ApplicationDefaults, symbol tapestry.scriptaculous, as "context:/folder" (i.e., the web application context folder you copied the files to). Ta Da! Tapestry will use those files, not its built in files.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Nicolas Charles
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development