Error '$.type Is Not A Function Var Obj = $.type( Pref );' When Submit A Form In Jqgrid
Solution 1:
It's wrong to include two JavaScript files with implementation of the same module more as once. Moreover it's important to include JavaScript files in the correct order. Additionally you should not include any plugins which you don't use.
Typically one uses
i18n/grid.locale-en.js
jquery.jqGrid.src.js
during developing of some solution and uses
i18n/grid.locale-en.js
jquery.jqGrid.min.js
in the final solution. See the documentation.
One should include jQuery before any jqGrid JavaScript file. Including of ui.jqgrid.css
and jQuery UI CSS is also required.
If you will have still an error you should post the exact line number of jquery.jqGrid.src.js
where the error occurred. You should post more full JavaScript code which you use.
Solution 2:
I just encountered the exact same error message. I'm posting what worked for me in case it might help anyone else. I was getting the TypeError: b.type is not a function when trying to save from a form. The version of jqgrid I am using is 4.4.3, and I was calling an older version of jquery (1.4.2). Using a newer version of jquery (1.7.2 in my case) fixed the problem. I guess the function 'type' was not in version 1.4.2.
Solution 3:
Solved this problem. Just because of jqGrid
doesn't support jQuery 1.9
.
Post a Comment for "Error '$.type Is Not A Function Var Obj = $.type( Pref );' When Submit A Form In Jqgrid"