For example: I want to hide any HTML element by using fade out animation in Telerik Websource Javasctip library. Following code block is giving a Javascript error.
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="scriptManager" runat="server"> |
</telerik:RadScriptManager> |
<div> |
<asp:Label ID="lbl" runat="server" Text="Deneme deneme test deneme" BackColor="#CCFFCC" |
BorderColor="#33CC33" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" |
Font-Overline="False" Font-Size="XX-Large"></asp:Label> |
</div> |
<script language="javascript" type="text/javascript"> |
$telerik.addExternalHandler(window,"load",function(){ |
$TWA.FadeOutAnimation("<%=lbl.ClientID %>",5000,12,0,100,false); |
}); |
</script> |
</form> |
[Exception... "'Sys.ArgumentTypeException: Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Telerik.Web.Animation.Animation'.
Parameter name: instance' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
http://localhost/test/ScriptResource.axd?d=xaFaZSmTqsDtn6RXGPYEctl5heZz2bXadFYPgQtWAk8ViMG9nWQU_wdUuNvUR01T_jvUqe2AegLMn6_E0rdmjj7dhQUGW3XwIyQHc95wbiU1&t=51124636
Line 6342