This is a migrated thread and some comments may be shown as answers.

kendo window iframe mode script files loading Issue

1 Answer 121 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shiva
Top achievements
Rank 1
Shiva asked on 12 Oct 2012, 11:04 AM
Hi,

I opened kendow window in iframe mode with say some site www.microsoft.com and if i observe in IE Developertools script files of site are loaded and after i close the modal window i reopened it then i see 2sets of script files of microsoft. And this is increasing number of times i open the modal window. So when I close the kendo window it is getting destroyed but iframes still remained in DOM? or my IE Developer tool is showing older files also (which i dont think it is).

1 Answer, 1 is accepted

Sort by
0
Nohinn
Top achievements
Rank 1
answered on 15 Oct 2012, 09:19 AM
You should destroy the window when it closes to avoid this issue (though even destroying it you will have one reference to the scripts loaded in the iframe with the developer tools).
$('#modal').kendoWindow({
   ...
   close: function() {
      setTimeout(function() {
         $('#modal').kendoWindow('destroy');
      }, 200);
   }
});
Tags
Window
Asked by
Shiva
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Share this question
or