cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uncaught TypeError: undefined is not a function

TimMuchena
Participant
0 Likes
876

Hello people

I am having an issue where I get the error as shown below. I am able to display the fist/master page. I get the error when I try to navigate to the detail page to view details of a selected item

Kind regards

View Entire Topic
Former Member
0 Likes

This is a common JavaScript error that happens when you try to call a function before it is defined. You get "'undefined' is not a function" error when you try to execute a function that is uninitialized or improperly initialized . It means that the expression did not return a function object. So you have to figure out what you are trying to execute isn't a function.

In Javascript , when you execute a function, it's evaluated like the following:

  • expression.that('returns').aFunctionObject(); // js execute ->
  • expression.that('returns').aFunctionObject // what the JS engine does

That expression may be complex. So when you get undefined is not a function it means that expression did not return a function object. So you have to figure out what you are trying to execute isn't a function.