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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: