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