CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   jQuery Mystery: Datepicker works in every browser but Chrome (http://www.codingforums.com/showthread.php?t=285951)

spockrates278 01-17-2013 06:44 PM

Mystery: Datepicker works in every browser but Chrome
 
Hi. I have a mysterious issue I hope some coding detective will help me resolve. It's probably something simple I've missed, or some workaround of which I'm unaware.

A jQuery datepicker I recently added to a page works in IE 9, FF 18, even Safari 5, but it will not work in Google Chrome. Here is a link to the demo:

http://www.tempuspayment.com/paymentmate/tests/apm/

Here is the code:

Code:

                $(function() {
                        $( "#fromCheck" ).datepicker({
                                defaultDate: "-1w",
                                maxDate: "+0",
                                changeMonth: true,
                                numberOfMonths: 1,
                                showButtonPanel: false,
                                onClose: function( selectedDate ) {
                                        $( "#toCheck" ).datepicker( "option", "minDate", selectedDate || "-1w" );
                                }
                        });
                        $( "#toCheck" ).datepicker({
                                defaultDate: "+0",
                                maxDate: "+0",
                                changeMonth: true,
                                numberOfMonths: 1,
                                showButtonPanel: false,
                                onClose: function( selectedDate ) {
                                        $( "#fromCheck" ).datepicker( "option", "maxDate", selectedDate || "+0" );
                                }
                        });
                        $( "#fromCard" ).datepicker({
                                defaultDate: "-1w",
                                maxDate: "+0",
                                changeMonth: true,
                                numberOfMonths: 1,
                                showButtonPanel: false,
                                onClose: function( selectedDate ) {
                                        $( "#toCard" ).datepicker( "option", "minDate", selectedDate || "-1w" );
                                }
                        });
                        $( "#toCard" ).datepicker({
                                defaultDate: "+0",
                                maxDate: "+0",
                                changeMonth: true,
                                numberOfMonths: 1,
                                showButtonPanel: false,
                                onClose: function( selectedDate ) {
                                        $( "#fromCard" ).datepicker( "option", "maxDate", selectedDate || "+0" );
                                }
                        });
                });

It's a mystery to this Watson. Maybe it's elementary to you?

:D


All times are GMT +1. The time now is 06:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.