Jquery script is not active any more? RRS feed

  • Question

  • User1421620300 posted

    Could someone please explain to my my solution no longer complies without any errors. Let for the weekend and not the solution does not work/has errors! Markus


    Uncaught SyntaxError: Unexpected token ':'

    jQuery.Deferred exception: getAllHeroes is not defined ReferenceError: getAllHeroes is not defined
    at HTMLDocument.<anonymous> (http://localhost:53472/Scripts/app.js:87:5)
    at j (http://localhost:53472/Scripts/jquery-3.1.1.min.js:2:29948)

    Uncaught (in promise) Could not establish connection. Receiving end does not exist.

    jquery-3.1.1.min.js:2 Uncaught ReferenceError: getAllHeroes is not defined

    <div class="comment-right-col comment-body"> <div>



    </div> </div>

    Monday, March 9, 2020 2:41 PM


  • User281315223 posted

    Can you post some additional details such as where your scripts are defined and _how_ they are defined (i.e. your reference to jQuery and your additional service.js script)? This sounds like it could potentially be a race condition where your service hasn't yet been loaded and you are trying to make a call to a function it defines.

    You may have to make sure your calls are wrapped within a "document ready" block prior to calling them. Any examples of your declarations should make it a bit easier to troubleshoot the issue.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 9, 2020 3:02 PM