jquery-error-is-not-a-function

Questionsjquery-error-is-not-a-function
Richard Williams asked 3 years ago

I\\\’m a newbie to using grid4php.  The grid displays correctly the contents of a MySql database table within a Joomla article but when debugging the code I\\\’m seeing this error: Uncaught TypeError: $ is not a function at eval (eval at <anonymous> (jquery.jqGrid.min.js:9), <anonymous>:1:188) at dispatch (jquery.min.js?8f3aa6a98ea87e08c75cc6be50120a9d:2) at v.handle (jquery.min.js?8f3aa6a98ea87e08c75cc6be50120a9d:2) Has anyone seen this before and knows what\\\’s casuing it? Thanks for any suggestions

2 Answers
Abu Ghufran Staff answered 3 years ago

It looks like either JS jQuery is loaded twice in your html. Please check browser’s – view source, and remove one jquery library that is loaded after jqgrid.min.js

Another possibility is that jQuery is not being loaded at all.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Richard Williams answered 3 years ago

Most likely, you are correct but because I’m displaying the grid in a Joomla article I have no control over jQuery that’s loaded by Joomla.  If I remove the command that forces the loading of jQuery as described in your example, the grid does not display/appear.

I think the problem is caused by the fact that I am using Joomla version 3.10.* which uses jQuery-migrate, an intermediate version of jQuery that’s installed in readiness for upgrading Joomla to version 4.

Your Answer

20 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?