PDA

View Full Version : Popup Calendar



carterj
05-05-2005, 12:53 PM
http://www.dynamicdrive.com/dynamicindex6/popcalendar.htm

Im trying to add fuinctionality to remove specific days from the calendar as per the instructions which advise me that:

For this you have to use the 2nd argument in getCalendarFor() function.
Example: Exclude all Fridays of each month: getCalendarFor(field,'[^]:5:a')

I actually want to exclude all Tuesday to Sundays (Make Mondays the only option) but Im not sure how to include the above command with the required command that points to the specific form element:

onClick="getCalendarFor(document.whereabouts.DateWCMonday)"

How do I "use the 2nd arguement" to do this.

Many Thanks

jscheuer1
05-05-2005, 04:17 PM
onClick="getCalendarFor(document.whereabouts.DateWCMonday,'[]:1:a')"

carterj
05-06-2005, 09:03 AM
Works a Treat - Much appreciated :)