Solved

TypeError: undefined is not a function

Posted on 2014-09-17
3
194 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now