弹出提交请求后应该打开父窗口?

时间:2017-09-18 09:57:04

标签: javascript jquery

从父窗口我打开一个弹出窗口。弹出屏幕控制成功后应该转到父窗口,但是当我尝试下面的代码时,父窗口会先出现,子窗口会出现在该窗口后面。

 function A(requestId) 
 { //strong text
   B();//it will open child window
   c(); //after this i am trying to open parent window by calling this method here.
 }

function B(){                 var childWindowId =“v”;

            var flowExecutionUrl = '#{flowExecutionUrl}';
            var contentUrl = something;
            var parentCallbackFunction = null;
            var destroyOnClose = true;
            cwmManager.create(childWindowId, draggable, title, helpMenu, width, height, windowContentClass, windowTitleClass, windowTitleImageClass,
                                closeIcon, windowBorder, suppressScrolling, modal, callbackFunction, contentId, contentUrl,
                                parentCallbackFunction, destroyOnClose);
            cwmManager.open(childWindowId);
              return true;         
        }

请帮助我解决这个问题。

1 个答案:

答案 0 :(得分:0)

  1. 使用宽度和宽度打开新窗口父窗口使用以下代码的高度: -

    
    function myFunction() {var myWindow = window.open("", "", "width=200,height=100");

  2. 成功后将数据传递给父窗口