Forum Moderators: open

Message Too Old, No Replies

Call function based on date selected

Determining how many days between date selected and current date

         

junai3

4:25 am on Aug 3, 2004 (gmt 0)

10+ Year Member



I have hit a road block in a script that I am writing. I am having a user select a date using the following javascript date selection script:

[mattkruse.com...]

From here I need to determine if the date a user selects is within 7 days of the current date. If it is I will call one funtion. If it is more than 7 days from the current date, I will call another function.

Does anybody know how I would go about doing this?

Thanks a bunch,

korkus2000

1:44 pm on Aug 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What you need to do is call a function when the date is selected. I am not fimiliar with this script, but you can either check the date when the date is passed to this script or in an onchange event with the form element that gets populated.