Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-17-2013, 06:44 PM   PM User | #1
spockrates278
New to the CF scene

 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
spockrates278 is an unknown quantity at this point
Question 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?

spockrates278 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:39 PM.


Advertisement
Log in to turn off these ads.