Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2247

nested iframe reloading content when detached parent window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.6, 6.5.6, 7.0.2
    • 6.0.5, 6.5.5, 7.0.1
    • ZK Client Engine
    • Security Level: Jimmy
    • reproduced in Chrome / IE9

      when an iframe is nested in a Modal window (or popup) and the window is detached the iframe reloads its content before being removed

      Run the attached example:
      click "open"
      -> the content of iframeSimple is created (see server log message "*** CREATED ***")

      click the button "remove (loads iframe again)"
      -> the window is getting detached but the iframe reloads before getting removed from the dom (check network tab in browser) and server log ("*** CREATED ***")

      the example also contains a workaround (second button),
      avoiding the reload by clearing the iframe src attribute in a widget onClick listener
      w:onClick="zk.Widget.$('$iframe').setSrc('');"
      -> no reload occurs (expected)

            noahhuang noahhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: