Activity Forums Salesforce® Discussions Please provide some solution i am having this kind of error

  • Please provide some solution i am having this kind of error

  • Parul

    Member
    August 28, 2018 at 11:59 am

    Please provide solution for this error, If anyone having any solution?

    Uncaught TypeError: $(...).tablesorter is not a function
    at HTMLDocument.<anonymous> (IMM2?id=a0Q29000003EFTHEA4:717)
    at fire (jquery-1.10.2.js:3048)
    at Object.fireWith [as resolveWith] (jquery-1.10.2.js:3160)
    at Function.ready (jquery-1.10.2.js:433)
    at HTMLDocument.completed (jquery-1.10.2.js:104)

  • Avnish Yadav

    Member
    August 31, 2018 at 10:28 am

    Hi Parul,

    I think, this error: $(...).tablesorter is not a function it makes me think that more than one copy of jQuery is being loaded on the page. Please make sure that only one copy of jQuery is loaded.

    Thanks.

  • Parul

    Member
    September 3, 2018 at 1:30 pm

    Hello Avnish,

    This is the solutions of problem :

    <apex:includeScript value="//code.jquery.com/jquery-1.10.2.js"/>
    <apex:includeScript value="//code.jquery.com/ui/1.11.2/jquery-ui.js"/>

    hope this will help you to in future.

    Thanks.

  • shariq

    Member
    September 15, 2018 at 1:04 am

    Hi,

    Reason behind the problem was - you have not included the jquery library and you were using its methods on js.

    Best practice is to save that library in static resource rather using it directly on page.

    Hope this helps.

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos