This is a migrated thread and some comments may be shown as answers.

jQuery .animate

2 Answers 74 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
msigman
Top achievements
Rank 2
msigman asked on 21 Dec 2010, 04:45 AM
I must be doing something very simple, but for whatever reason I cannot get any jQuery function to work for me.  It always gives me the error

Microsoft JScript runtime error: Object doesn't support this property or method

Here's what I'm trying to do:

 $telerik.$animate({ scrollTop: 0 }, 500, 'ease')

And here is my scriptmanager:

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true"
    <Scripts
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts
</telerik:RadScriptManager>

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 21 Dec 2010, 03:31 PM
Hello msigman,

The problem is the you forgot to place a decimal between $ and animate. Like so:

$telerik.$(document).animate({ scrollTop: 0 }, 500, 'ease')

The $ is the jQuery object. You also need to pass it the object you want to animate. I just put the document object.

I hope that helps.
0
msigman
Top achievements
Rank 2
answered on 21 Dec 2010, 04:47 PM
Ah, of course.  I knew it was something simple.  This is why I shouldn't work at night.
Tags
Ajax
Asked by
msigman
Top achievements
Rank 2
Answers by
Cori
Top achievements
Rank 2
msigman
Top achievements
Rank 2
Share this question
or