Link to home
Start Free TrialLog in
Avatar of john_hollings
john_hollingsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

JavaScript Calendar Popup

Hi,

I have been working on a event form for a colleague of mine that the company I work for will be hosting.  I have managed with the assistance of experts here at expert-exchange to get the form working with a fair bit of JavaScript, however I have noticed a slight issue with some script I found on the Internet which provides a JavaScript popup calendar which opens in a div.  The calendar works fine and looks great and does exactly what I want it to do.

The problem is one of my fields is date of birth and the calendar only starts from 2007 and ends at 2011.  I have looked at the JavaScript and found some reference to the start year offset and changes it from 2 to 120.  The issue with this is it displays 120 years  + and - of the current year.  This is no good for me all I wanted it to do is go back 120 years and remain 2 years + of the current year.

I have uploaded the JavaScript file and was wondering if there is anything I missing.  I would really appreciate any assistance with this as it's the last little issue I have.
CalendarPopup.js.txt
ASKER CERTIFIED SOLUTION
Avatar of Robin Uijt
Robin Uijt
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of john_hollings

ASKER

Nice one, it works - thank you so much, I have been looking at this JS code for days trying to find where it applied the yearCounter.  My knowledge of JavaScript is very limited but is growing all the time thanks to you and the other experts here that keep helping.  So again many thanks for your help.