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
Solved

TypeError: undefined is not a function

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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.
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…

809 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