Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-416

Javascript error with IE and Window Prototype

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Hide
        drees 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
        drees 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
        hlship 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
        hlship 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:
            hlship Howard M. Lewis Ship
            Reporter:
            nicolas_c Nicolas Charles
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development