Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Get WindowState on clientside
posted

Can you help me capture the windowstate on the client side?

 The showSelect function fires when the WebDialogWindow windowstatechanged event takes place, but I do not know how to correctly find this value.

function showSelect()

{

var dialog = $find("ctl00_MainContent_SearchCtl1_WebDialogWindow1");

 

var resultVar = dialog.get_windowState();

 

if (resultVar == "Normal") {

var elements = document.getElementsByTagName("select");

var i = 0;

var dispType = "inline";

while (j < elements.length) {

elements[j].style.display = dispType;

j++;

}

}

}

Parents
No Data
Reply
  • 10880
    posted

    you can compare to the following values:

    $IG.DialogWindowState.Normal

    $IG.DialogWindowState.Hidden

    $IG.DialogWindowState.Minimized

    $IG.DialogWindowState.Maximized

    so

    if (resultVar == $IG.DialogWindowState.Minimized) { do something; }

    I believe their values are 0,3,1, and 2 repectively.

Children
No Data