umair96 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Error: object doesn't support property or method 'datepicker' on ie7,8,9. #375

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The date picker not shows up on IE 7,8, and 9.Then when i go to console in 
developer tools, i saw this error:
SCRIPT438: Object doesn't support property or method 'datepicker' 

My code are:
<link rel="stylesheet" href="../inc/jquery-ui.css" />
    <script src="../inc/jquery-1.9.1.js"></script>
    <script src="../inc/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
        $(function() {
            $( "#from" ).datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 2,
                onClose: function( selectedDate ) {
                    $( "#to" ).datepicker( "option", "minDate", selectedDate );
                }
            });
            $( "#to" ).datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 2,
                onClose: function( selectedDate ) {
                    $( "#from" ).datepicker( "option", "maxDate", selectedDate );
                }
            });

        });
    </script>

its look nice in IE10 (below image). But, the issue is my user need it in IE 
7,8 and 9. Please assist.

Original issue reported on code.google.com by nca8...@gmail.com on 16 Aug 2013 at 3:20

Attachments:

GoogleCodeExporter commented 8 years ago
You are including the jQuery UI date picker which is different to this one:

https://code.google.com/p/jquery-datepicker/wiki/NotTheUIDatePicker

Original comment by kel...@kelvinluck.com on 16 Aug 2013 at 3:27

GoogleCodeExporter commented 8 years ago
Thanks kelvin.so i need to use jquery version 10.For now, its work on IE9 and 
8. IE7 not try yet since i hv issue to downgrade my PC to IE7.

Original comment by nca8...@gmail.com on 16 Aug 2013 at 8:40