Hi,
I am facing the following problem in safari 5.
1. I have a button which is disabled in design mode
2. I am enabling this button via javascript.
3. Though the button gets enabled, the button looks like it is still disabled
The style used is Office 2007 and the version of telerik used is 2009 or 2010 [not sure].
Regards,
Shashank
I am facing the following problem in safari 5.
1. I have a button which is disabled in design mode
2. I am enabling this button via javascript.
3. Though the button gets enabled, the button looks like it is still disabled
The style used is Office 2007 and the version of telerik used is 2009 or 2010 [not sure].
Regards,
Shashank
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
script
type
=
"text/javascript"
>
function EnableButton() {
var btn = document.getElementById("btnTarget");
btn.disabled = false;
}
</
script
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
telerik:RadFormDecorator
Skin
=
"Office2007"
ID
=
"RadFormDecorator1"
DecoratedControls
=
"all"
runat
=
"server"
DecorationZoneID
=
"zoneButtons"
/>
<
asp:UpdatePanel
ID
=
"UpdatePanel1"
runat
=
"server"
>
<
ContentTemplate
>
<
div
id
=
"zoneButtons"
>
<
asp:Button
ID
=
"btnTarget"
Text
=
"Target"
runat
=
"server"
Enabled
=
"false"
/>
<
asp:Button
runat
=
"server"
ID
=
"btnSource"
Text
=
"Click to enable 'Target'"
Enabled
=
"true"
OnClientClick
=
"EnableButton();return false;"
/>
</
div
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
div
>
</
form
>
</
body
>
</
html
>