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

Open Window From Another Window

1 Answer 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 12 Oct 2011, 11:34 AM
Hi,
I am using Rad Component Version 2011.2.906.35
I want to open window in parent from another window
But this code don't work at Fire Fox 7.0
And also work fine in IE 9
<script language ="javascript" type ="text/javascript" >  
    function GetRadWindow()     
        {     
            var oWindow = null;     
            if (window.radWindow)
                oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog     
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;//IE (and Moz as well)     
            return oWindow;
        }
 
        function opwn_window_2() {
            var oBrowserWnd = GetRadWindow().BrowserWindow;
            oBrowserWnd.radopen("http://www.google.com", "RadWindow2");
             
        }
        </script>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Oct 2011, 12:48 PM
Hello Ali,

I am not sure about the issue that you are facing. Please make sure that the JS code is called before the controls are fully loaded on the page In such scenarios you can try either call the JavaScript code with a small timeout, or to use the Sys.Application.Load event and call the code there.

Hope it helps.

Thanks,
Princy.
Tags
Window
Asked by
Ali
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or