Nov 10, 2010, 1:40 PM
Show and Hide Panel with javascript in Chrome
Hello!
I've got some troubles with changing panel visibility:
Chrome don't want to show panel (in FF & IE works fine)
I've got some troubles with changing panel visibility:
Chrome don't want to show panel (in FF & IE works fine)
[javascript]
function setPasswordShow(show) {
try {
UserSetPassword_Panel.setVisible(show);
UserSetPassword_Button.setVisible(!show);
}
catch (e) { }
}
[aspx]
<ext:Button runat="server"
ID="UserSetPassword_Button" IDMode="Static"
Text="<%$ Resources:User_SetPassword %>">
<Listeners>
<Click Handler="setPasswordShow(true);"/>
</Listeners>
</ext:Button>
<ext:Panel runat="server"
Layout="Form" Hidden="true"
ID="UserSetPassword_Panel" IDMode="Static"
Title="<%$ Resources:User_SetPassword %>" >
<Items>
<ext:TextField runat="server"
InputType="Password"
ID="UserPassword1_TB" IDMode="Static"
FieldLabel="<%$ Resources:User_Password %>"
LabelStyle="width:150px;" Width="300px" AllowBlank="false">
</ext:TextField>
</Items>
</ext:Panel>