PDA

View Full Version : Problem with: Jason's Date Input Field



chads2k2
09-20-2007, 08:37 PM
1) Script Title:
Jason's Date Input Calendar

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

3) Describe problem:
Use FF and click on the Year field. Manually start typing. You will see that there is an error. The error is in the calendarDateInput.js line 581. You have: onKeyPress="return YearDigitsOnly(window.event)" you should have - onKeyPress="return YearDigitsOnly(event)". It works fine in IE/Opera for both cases.

jscheuer1
09-23-2007, 09:35 AM
I'm not getting that error in FF from the demo page on Dynamic Drive. However, I am getting:


Error: e has no properties
Source File: http://www.dynamicdrive.com/dynamicindex7/calendarDateInput.js
Line: 40

Still, the script appears to work when manually entering the year in FF. In the end, that's all that really matters. Most FF users do not surf with its error console. Those who do should know the difference between a fatal error and one that doesn't cause any real problem.

If I have missed something important here, please accept my apologies, and please explain further.

chads2k2
09-26-2007, 03:47 PM
Yes, that is exactly what I am talking about. Line 40 error. However, if you want to make the script not have any errors on it, you can use 3.) from my first post. That will fix that error and also it works perfectly.

Just trying to make the code be flawless.

Take care, and good work!
Chad R. Smith
Willetts Systems