openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

IFrame rerendering/remove kills complete Page in IE

Open cschuff opened this issue 10 years ago • 3 comments

OpenUI5 version: any

Browser/version (+device/version): IE11 (11.0.9600.18524)

Any other tested browsers/devices(OK/FAIL): Chrome is OK

URL (minimal example if possible): https://output.jsbin.com/qakotawaze/1

Steps to reproduce the problem:

  1. Click the buttons

What is the expected result? A clean remove resp. rerendering.

What happens instead? Instead the complete page turns white (remove via jQuery, SAPUI5 rerender iframe, SAPUI5 rerender parent). The only thing still visible is the iframe. Sometimes the page recovers after quite a while.

cschuff avatar Nov 17 '16 14:11 cschuff

Have seen the same issue with the same browser in a different SAP product.

Also the following JQuery UI bug describes the behavior:

https://bugs.jqueryui.com/ticket/9122

It seems to help to set the iframes src attribute to "about:blank" before removing the iframe.

Kind Regards, Christoph

comdata avatar Nov 27 '16 21:11 comdata

Hi @cschuff, thank you for the issue.

I went through this flow:

  1. button remove via jQuery - I removed the iframe with jquery

  2. button SAPUI5 rerender iframe After removed, the handler does nothing, because $("iframe").control()[0] does not exist, if $("iframe").control()[0] does not exist- $("iframe").control()[0] .rerender() does nothing.

  3. button SAPUI5 rerender parent - the VBox rerenders itself, including the iframe, which is normal.

Is there something I am missing? If I understood you corectly, you expect pressing button SAPUI5 rerender iframe to bring the iframe back? Thanks in advance.

best, ilhan

ilhan007 avatar Dec 05 '16 15:12 ilhan007

Since there is no response from the author for more than 4 weeks I'm closing the ticket.

Shtilianova avatar Apr 12 '17 10:04 Shtilianova