hi
im using radwindow on my project but i encountered a problem while using the client side event
here is my problem:
actually i wanted to do some test before my radwindow pops up, but it doesnt work..
even my test made is true, the radwindow still popping up.
how could i exit the function when my if instruction is true?
here is my code of the function:
i need help ASAP
thanks
regards
webster
im using radwindow on my project but i encountered a problem while using the client side event
here is my problem:
actually i wanted to do some test before my radwindow pops up, but it doesnt work..
even my test made is true, the radwindow still popping up.
how could i exit the function when my if instruction is true?
here is my code of the function:
| function OpenWin1(StoredP) |
| { |
| var parentPage = GetRadWindow().BrowserWindow; |
| var parentRadWindowManager = parentPage.GetRadWindowManager(); |
| var paramControl = document.getElementById("<%= txtPROGRESSIVOCAMPO.ClientID %>"); |
| if (paramControl.value != null){ |
| var param = "ZoomSTD.aspx?rwd=rwdUTECampi&SPZoom="+StoredP+"&PF="+paramControl.value; |
| } |
| else |
| { |
| var param = "ZoomSTD.aspx?rwd=rwdUTECampi&PF=&SPZoom="+StoredP; |
| } |
| document.getElementById('btnHidden').click(); |
| //faccio un controllo se la creazione della sessione non si è verificata un'errore |
| if (document.getElementById("ErrMsg").value != "") return false; |
| // se c'è un'errore non apro il pop up e esco dalla funzione |
| var oWnd2 = parentRadWindowManager.open(param, "rwdCodiceProgCampo"); |
| window.setTimeout(function() |
| { |
| oWnd2.setActive(true); |
| },0); |
| } |
i need help ASAP
thanks
regards
webster