Solved

TypeError: undefined is not a function

Posted on 2014-09-17
3
208 Views
Last Modified: 2014-09-29
when something goes wrong with my javascript/jquery  I usually get something like  "TypeError: undefined is not a function" or some other generic error message.  "something went wrong".

I can normally debug these issues pretty quickly though sometime it takes a bit of time as sometimes no idea of where or what exactly the error/issue is.

The error information I get usually points to a line say the  Jquery file when the issue is most certainly in my code.  

Long question short is there a way of getting more description error messages or at least pointing me in a better direction .
0
Comment
Question by:Kevin Robinson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40328081
Not really, an error in one bit of code may only shows it face in another bit of code, especially when dealing with jQuery
0
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 40328098
I don't know what you use to track these "nested" errors but Chrome Dev Tools gives you a big help.
For instance, Stack Tracing the error might very very useful in the case you describe.

Have a look here (but don't miss the whole article)
0
 
LVL 3

Author Closing Comment

by:Kevin Robinson
ID: 40350300
Great resource
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question