Solved

TypeError: undefined is not a function

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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.
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)

707 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

16 Experts available now in Live!

Get 1:1 Help Now