ICEfaces
  1. ICEfaces
  2. ICE-9165

ace:printer, JS error when activating button

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.GA
    • Fix Version/s: EE-3.2.0.GA
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      Description

      There's a JS error when clicking on 'print table' or 'print both' ('ice' is undefined) in the showcase demo.

        Activity

        Arturo Zambrano created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34376 Fri Apr 12 10:34:24 MDT 2013 art.zambrano ICE-9165 removed script tags from cloned html used for printing
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/printer/printer.js
        Arturo Zambrano made changes -
        Field Original Value New Value
        Assignee Arturo Zambrano [ artzambrano ]
        Hide
        Arturo Zambrano added a comment -

        Committed fix at revision 34376.

        When the printing action starts, the printing plug-in creates a temporary node in an iframe and copies all the markup in the target element to this temporary node, including script tags, and then prints the iframe. When the html is written to the iframe it cannot find our 'ice' object in our scripts, etc. So, I made sure to remove script tags from this copied markup.

        Show
        Arturo Zambrano added a comment - Committed fix at revision 34376. When the printing action starts, the printing plug-in creates a temporary node in an iframe and copies all the markup in the target element to this temporary node, including script tags, and then prints the iframe. When the html is written to the iframe it cannot find our 'ice' object in our scripts, etc. So, I made sure to remove script tags from this copied markup.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34380 Fri Apr 12 11:35:51 MDT 2013 ken.fyten ICE-9165 removed script tags from cloned html used for printing
        Files Changed
        Commit graph MODIFY /icefaces3/tags/icefaces-3.3.0/icefaces/ace/component/resources/icefaces.ace/printer/printer.js
        Ken Fyten made changes -
        Fix Version/s EE-3.2.0.GA [ 10332 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: