Friday, May 17, 2024
167
rated 0 times [  170] [ 3]  / answers: 1 / hits: 11187  / 10 Years ago, mon, november 3, 2014, 12:00:00

While running my project in Internet Explorer i caught up with this message 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'timepicker' and indicated that the error occurs on one of js files that is attached to the project.
the error points to this line on the js file
--> $('.timepicker-default').timepicker(); there is no other problems with this as the datetime picker works fine. The project runs fine on chrome and Firefox. This happens only with IE explorer (IE 11 , version : 11.0.9600.17351)


More From » internet-explorer-11

 Answers
4

Hopefully managed to solve my problem. Not sure whether my approach is right or wrong. what i did is ...
1. Removed most of the References from my child pages and put it on to the Master/Layout Page.
2. Added jquery-1.9.1.min.js , jquery.js files only on my child pages
3. Added



<script type=text/javascript>
$('.default-date-picker').datepicker({
format: 'mm-dd-yyyy'
});
</script>


Now everything works fine.


[#41524] Friday, October 31, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
margaritakristinak

Total Points: 502
Total Questions: 127
Total Answers: 98

Location: England
Member since Mon, May 17, 2021
3 Years ago
;