Using the RadAjax control to load content that contains an iframe causes the iframe's document to be cleared because the content is moved within the DOM.
I've traced the problem down to Telerik.Web.UI.RadAjaxControl.InsertAtLocation, which calls insertBefore. The fact that insertBefore clears the iframe document is a problem with Firefox. My problem is figuring out why InsertAtLocation is called by the endRequest handler. It is looping through "panelsToClear[]". I would expect the response from the ajax request to be inserted at its target location without having to move it.
Unfortunately, I have not been able to create a simple application that shows the problem. It only happens in the more complex application.
Any insight on how to prevent InsertAtLocation from moving the content with the iframe is greatly appreciated. In fact, as I think of it, I might be able to initialize the iframe AFTER the radajax endRequest has finished moving it. Can I attach an event handler to that event from within the ajax response script?
Firefox 2.0.0.15
I've traced the problem down to Telerik.Web.UI.RadAjaxControl.InsertAtLocation, which calls insertBefore. The fact that insertBefore clears the iframe document is a problem with Firefox. My problem is figuring out why InsertAtLocation is called by the endRequest handler. It is looping through "panelsToClear[]". I would expect the response from the ajax request to be inserted at its target location without having to move it.
Unfortunately, I have not been able to create a simple application that shows the problem. It only happens in the more complex application.
Any insight on how to prevent InsertAtLocation from moving the content with the iframe is greatly appreciated. In fact, as I think of it, I might be able to initialize the iframe AFTER the radajax endRequest has finished moving it. Can I attach an event handler to that event from within the ajax response script?
Firefox 2.0.0.15