jQuery .animate

3 posts, 1 answers
  1. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 20 Dec 2010 Link to this post

    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. Answer
    Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 21 Dec 2010 Link to this post

    Ah, of course.  I knew it was something simple.  This is why I shouldn't work at night.
Back to Top