Solved

TypeError: undefined is not a function

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
email validation 9 47
Date on a table 16 33
How do I update select listbox after search 2 21
Open grouped links on a page in new tabs via jquery 5 40
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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)

735 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