Hi,
I'm using Telerik version 2009.31208.20. I have a master page in which I put some windows in a radwindow manager and an OnClientClose javascript function that is invoked when a window is open then closed in the content page. This scenario works perfectly.
Here the content page source code (change password form):
I'm using Telerik version 2009.31208.20. I have a master page in which I put some windows in a radwindow manager and an OnClientClose javascript function that is invoked when a window is open then closed in the content page. This scenario works perfectly.
However,
I have placed in the content page 3 radtextbox (change pass word form),. After entering the old and new password, I clic on a validate button to send the form and change the password. This works fine in all web navigators except in Google Chrome: some times and at random way, when I clic on the validate button i get the "try to enter your old passwold" and the radtextbox is cleared (an empty string is sent to the server). When I debug javascript in the page, this error is shown: erreur javascript :"OnClientClose is not defined : $create(Telerik.Web.UI.RadWindow, ...get("ctl00_frmCoordonneesPostale"));".
Thanks.
here the master page source code:
<telerik:RadWindowManager ID="RadWindowManager1" Skin="WebBlue" runat="server" Behaviors="Close, Move" |
Modal="True" ReloadOnShow="True" ShowContentDuringLoad="False" OnClientClose="OnClientClose" |
InitialBehaviors="Close"> |
<Windows> |
<telerik:RadWindow ID="frmCoordonneesPostale" runat="server" Title="<%$ Resources:Labels, SubSpacefrmCoordonneesPostaleTitle %>" |
DestroyOnClose="False" Height="510px" KeepInScreenBounds="True" VisibleStatusbar="false" |
Width="575px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" OnClientClose="OnClientClose" /> |
<telerik:RadWindow ID="frmMsg" runat="server" Title="<%$ Resources:Labels, SubSpacefrmMsgTitle %>" |
DestroyOnClose="False" Height="534px" KeepInScreenBounds="True" VisibleStatusbar="false" OnClientClose="OnClientClose" |
Width="575px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" /> |
<telerik:RadWindow ID="frmConfirmRegister" runat="server" Title="confimation" DestroyOnClose="False" Height="200px" KeepInScreenBounds="True" VisibleStatusbar="false" OnClientClose="OnClientClose" |
Width="570px" ReloadOnShow="true" ShowContentDuringLoad="false" Animation="FlyIn" /> |
</Windows> |
</telerik:RadWindowManager> |
<script type="text/javascript"> |
function OnClientClose(radWindow) { |
if (radWindow.Argument != null & radWindow.Argument == 'ConfirmMessage') { |
radWindow.Argument = null; |
if (radWindow._name == 'frmCoordonneesPostale') { |
$find("<%= RadToolTip1.ClientID %>").show(); |
return; |
} |
if (radWindow._name == 'frmMsg') { |
$find("<%= RadToolTip2.ClientID %>").show(); |
return; |
} |
} |
if (radWindow._name == 'frmConfirmRegister') { |
document.location.href = "login.aspx"; |
} |
} |
............... |
</script> |
<asp:UpdatePanel runat="Server" ID="UpdatePanel1"> |
<ContentTemplate> |
<table cellspacing="2" cellpadding="2" border="0" width="100%" style="position: relative; |
left: 21px; z-index: 1000;"> |
<tr> |
<td colspan="2"> |
<span class="repliB" id="ChangePwd"><span class="changePassword" onclick="cacherMontrerB('ChangePwdContent','ChangePwd')"> |
<img src="Images/pixel.gif" width="13" height="13" alt="puce" class="puceTriangleB" |
style="cursor: pointer" /> |
<asp:Label ID="lbChangePassword" runat="server" Style="cursor: pointer"><% =Resources.Labels.SubSpaceTdChangePassword%></asp:Label> |
</span><span id="ChangePwdContent" class="listeCache listeItems"> |
<table id="tblChangePwdDefaultMessage" runat="server" Visible="True" cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px"> |
<tr style="vertical-align: text-top;height: 70px"> |
<td colspan="2" style="text-align: right"> |
<asp:Label runat="server" ID="MsgInfoDefaultModifPwd" Text="<%$ Resources:Labels, MsgInfoDefaultModifPwd %>" CssClass="MsgInfoDefaultModifPwd"/> |
</td> |
</tr> |
</table> |
<table cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px"> |
<tr style="vertical-align: text-top"> |
<td style="text-align: right"> |
<span class="classTitleMember"> |
<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Labels, SubSpaceTdTapeOldPassword %>"></asp:Label></span> |
</td> |
<td style="text-align: right"> |
<telerik:RadTextBox ID="tbxOldPwd" runat="server" ValidationGroup="ChangePassword" |
CssClass="classTbx" Skin="WebBlue" TextMode="Password" Width="160px"> |
</telerik:RadTextBox> |
</td> |
</tr> |
<tr style="vertical-align: text-top"> |
<td style="text-align: right"> |
<asp:Label ID="Label9" CssClass="classTitleMember" runat="server" Text="<%$ Resources:Labels, SubSpaceTdTapeNewPassword %>"></asp:Label> |
</td> |
<td style="text-align: right"> |
<telerik:RadTextBox ID="tbxNewPwd" runat="server" CssClass="classTbx" Skin="WebBlue" |
ValidationGroup="ChangePassword" TextMode="Password" Width="160px"> |
</telerik:RadTextBox> |
</td> |
</tr> |
<tr style="vertical-align: text-top"> |
<td style="text-align: right"> |
<asp:Label ID="Label2" CssClass="classTitleMember" runat="server" Text="<%$ Resources:Labels, SubSpaceTdConfirmPassword %>"></asp:Label> |
</td> |
<td style="text-align: right"> |
<telerik:RadTextBox ID="tbxConfirmNewPwd" runat="server" CssClass="classTbx" Skin="WebBlue" |
ValidationGroup="ChangePassword" TextMode="Password" Width="160px"> |
</telerik:RadTextBox> |
</td> |
</tr> |
</table> |
<table cellspacing="2" cellpadding="2" border="0" width="90%" style="padding-left: 22px"> |
<tr style="vertical-align: text-top"> |
<td style="text-align: right"> |
</td> |
<td style="text-align: right"> |
<asp:Button UseSubmitBehavior="false" CssClass="classebouton" ID="btnChangePassword" runat="server" Text="<%$ Resources:Labels, SubSpacebtnValidate %>" |
OnClick="btnChangePassword_Click" Width="165px" ValidationGroup="ChangePassword"> |
</asp:Button> |
</td> |
</tr> </table> |
............ |
</ContentTemplate> |
</asp:UpdatePanel> |