Open Window From Another Window

2 posts, 0 answers
  1. Ali
    Ali avatar
    2 posts
    Member since:
    Sep 2011

    Posted 12 Oct 2011 Link to this post

    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("", "RadWindow2");
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Oct 2011 Link to this post

    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.

Back to Top