UI Dialog causing iframe to reload content every time 'show' is called
|Reported by:||bgrinstead||Owned by:|
|Keywords:||iframe show dialog||Cc:|
I recently ran into this problem. Basically, if you have an iframe inside your dialog content, every time you reshow the dialog, it reloads the iframe. This is unexpected and incorrect behavior. I have tracked down the change in the open function:
(uiDialog.next().length && uiDialog.appendTo('body'));
This line works - the iframe does not reload because the DOM is not being manipulated, I guess?
(uiDialog.parent().not('body').length && uiDialog.appendTo('body'));
Note: I found the fix here: http://www.nabble.com/-jquery.ui.dialog--Dailog-with-a-lot-of-HTML-unbearably-slow-td21257084s27240.html
Please take a look at this!
Thanks, Brian Grinstead
Change History (6)
comment:5 Changed 5 years ago by scottgonzalez
- Milestone changed from 1.next to 1.9
- Resolution set to fixed
- Status changed from new to closed