Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My jQuery fileuploader is not working but I am not getting error of fileuploader instead of fileuploader getting another error of jquery.min.js
JavaScript
Uncaught TypeError: Cannot read property 'msie' of undefined


What I have tried:

jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();

I have tried another link http://jquery.com/download/#jquery-migrate-plugin also.
Posted
Updated 17-Mar-16 5:12am
v5
Comments
ZurdoDev 17-Mar-16 9:44am    
The error should point you to a line of code. Something in that line of code is null.

1 solution

I have downloaded jquery-migrate.1.2.1.js and referenced that file in the error page.Now, it's working fine.

some times below script also work

<script>

jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();
</script>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900