Hi
I have some javascript on my page as follows:
var multiPage = $find(radMultiPage1);
var pageView = new Telerik.Web.UI.RadPageView();
multiPage.get_pageViews().add(pageView);
var randomnumber=Math.floor(Math.random()*1000001);
pageView._element.innerHTML="<iframe id='" + randomnumber + "' name='" + randomnumber + "' src='" + tabInfo[1] + "' height='95%' width='100%' frameborder='no'></iframe>";
multiPage.set_selectedIndex(pageView.get_index());
This is part of a function that creates a new tab on a tab strip and then creates a new pageview to go with that tab. This works fine.
When I remove the tab and the pageview (when the user clicks a close button on the tab) I get a Javascript error 'Object not set to an instance...' in IE7. This happens about 10 seconds after I remove the tab. I do not get the error in Firefox. When I opt to break on the error the debugger tells me that there is no source code at the location!
Whilst I appreciate that this is quite possibly not an issue with the Telerik controls but with IE7 itself, I wondered if anybody else has come across this issue and found a resolution for it?
I've been banging my head on my desk for days with this, so if you can help then please do!!
I have some javascript on my page as follows:
var multiPage = $find(radMultiPage1);
var pageView = new Telerik.Web.UI.RadPageView();
multiPage.get_pageViews().add(pageView);
var randomnumber=Math.floor(Math.random()*1000001);
pageView._element.innerHTML="<iframe id='" + randomnumber + "' name='" + randomnumber + "' src='" + tabInfo[1] + "' height='95%' width='100%' frameborder='no'></iframe>";
multiPage.set_selectedIndex(pageView.get_index());
This is part of a function that creates a new tab on a tab strip and then creates a new pageview to go with that tab. This works fine.
When I remove the tab and the pageview (when the user clicks a close button on the tab) I get a Javascript error 'Object not set to an instance...' in IE7. This happens about 10 seconds after I remove the tab. I do not get the error in Firefox. When I opt to break on the error the debugger tells me that there is no source code at the location!
Whilst I appreciate that this is quite possibly not an issue with the Telerik controls but with IE7 itself, I wondered if anybody else has come across this issue and found a resolution for it?
I've been banging my head on my desk for days with this, so if you can help then please do!!