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

RadWindow YouTube and IE8?

3 Answers 96 Views
Window
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 22 Jan 2010, 03:02 PM
I am using the Q3 2008 controls currently.

I have a radWindow I am opneing and setting options via JavaScript:

 

 

 

function openWindow() {  
        window.setTimeout(function() {  
            var oManager = GetRadWindowManager();  
            var rdWin = oManager.open('<%=WindowURL%> ''rwVideoTutorial');  
            rdWin.set_status('Video Tutorial <%=HelpVideoID %> ');  
            rdWin.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);  
            rdWin.center;  
            rdWin.remove_resize;  
            rdWin.add_dragEnd(OnClientDragEnd);  
            rdWin.setSize(620, 430);  
        }, 1000);  
    }  
 
    function OnClientDragEnd(sender, eventArgs) {  
        var oManager = GetRadWindowManager();  
        var oWnd = oManager.getWindowById(sender.get_id());  
                oWnd.reload();  
 
          
    } 

I am embeding a YouTube video on a page that is loaded by the RadWindow. In IE8 some strange things are happening. I added the OnClinetDragEnd in hopes that the content would reload, but it doesn't in IE8 unless I have IE8 in compatability mode. If hte winodw is draged in IE8 the audio cuts out fromt he video, so I thought I could jsut reload the content. Also, when the window closes and the video is still running, you can still hear the audio after the window is clsoed. I am not experiencing any of these issues with FireFox. 

Ultimately, I would like the content to reload as it does in FireFox, but in FireFox I really don't need to reload the content, because even after the window is done being dragged the video plays from where it left off.

If I can;t get this to work IN IE8 like it does in FF, how can I set the window to be destroyed via Javascript? I have the window set to be destroyed in the ASPX code, but I guess, since I am openeing it via javascript that doesn't matter.

Daniel

 

 

3 Answers, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 22 Jan 2010, 05:47 PM
I think you are using a very old version of the control that is not fully compatible with IE8. As far as I remember, Telerik claimed full IE8 support with Q1 2009 SP1 release. So, in a word, upgrade to that version (or the latest one) and see how it goes. Of course, if you can't upgrade, everything will work OK with <meta http-equiv="X-UA-Compatible" content="IE=7" />.

Cheers,
Poul
0
Matt
Top achievements
Rank 1
answered on 02 Feb 2011, 01:14 PM
Hi Daniel / Tech Support,

Did you ever get these issues sorted in ie8? With youtube in radwindow I am also hearing sound continue to play on after radwindow close and sound stop when window move? the meta tag did not seem to help.

Is there anyway to simply change the content of the radwindow on exit to stop the sound?

EDIT:

Linking in this client side code -

<script language="javascript" type="text/javascript"> //<![CDATA[ 
function OnClientclose(sender, eventArgs) { sender.setUrl(""); 
}//]]> </script>

Works for close issue, do I get any points for this? ;)

Thanks
Matt

0
Georgi Tunev
Telerik team
answered on 03 Feb 2011, 03:40 PM
Hi Matthew,

I am afraid no :)
This behavior is expected and the reason for it is that by default, the RadWindow object is not destroyed when the control is closed (unless DestroyOnClose is set to true). This behavior has been discussed many times in the forums and there is even a blog post where it is explained:
http://blogs.telerik.com/supportdept/posts/09-06-04/common_radwindow_issues_and_their_solution.aspx


Best wishes,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Daniel
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or