That would leave the feature open for other uses, such as, say, an events calendar among other things.
I don't want to allow future dates. I included this for use only with the DOB feature and changed the coding specifically for that. By default it had a feature to disallow dates in the past, I just modified it to only allow dates in the past.
Nothing major and most will not even notice or worry about it. But I know the reason and will fix it. Here is link to my test site for 3.4, I have created an account with username snitz/ snitz. you can test the date picker there.
quote:Originally posted by RichardKinser I don't want to allow future dates. I included this for use only with the DOB feature and changed the coding specifically for that. By default it had a feature to disallow dates in the past, I just modified it to only allow dates in the past.
Okay, I have restricted the future dates. Test it Here User/Pwd: snitz/snitz
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
I uploaded the "fixed" file, but it's not working correctly. The day/month are being switched when editing your birthdate. I used the code that was in your first post, but it doesn't seem to be working correctly. You can try it on this site.
I tried but there is no switching. Tried several times.
There is a minor problem, not about switching though, and I have already fixed that as well. I will post a link to text version of the file with all the corrections.
Richard, that will work only when the Month and Day are two digit numbers. Try Year 2002 and Month of August and then click on the arrows to go back and you will get error.
The reason: When there is birthdate found in the database, it is processed in inc_datepicker.js and then passed on to the pop_datepicker.asp. The format is MM/DD/YYYY. But in the next month and prev month links days and months are not padded with zeros. So the Mid function finds the '/', which gives an error.
So we need to modify the way the date is passed with the URL so that days and months are padded with zeros.
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
There are many changes made to this file, all you have to do is replace the existing file. Download the pop_datepicker.zip file from the link below. Extract the new modified file from the zip file and upload to your web server.
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
for even greater compatibility, I'm going to remove the ReplaceUrlArgs function and the CurrenURL() function because the ReplaceUrlArgs uses a vbscript regex which is only supported in vbscript v5.0 and up.
for even greater compatibility, I'm going to remove the ReplaceUrlArgs function and the CurrenURL() function because the ReplaceUrlArgs uses a vbscript regex which is only supported in vbscript v5.0 and up.
You can add these statement to the beginning of the following function, in case to keep the function in the file
function ReplaceUrlArgs( i_sURL, i_sArgs ) ReplaceUrlArgs = "pop_datepicker.asp?" & i_sArgs exit function
Richard, is it okay, if I remove the code in earlier posts to avoid confusion