This topic is locked

setting limits for date input

9/20/2006 3:14:14 AM
PHPRunner General questions
rjks author

Morning,
I am looking for a way to set the date range for a date input, I would like the range to begin from the todays date and until today plus 1 year.
Is this possible with the phprunner calender or must I use a different one?
Thanks
Robert

T
thesofa 9/20/2006

Morning,

I am looking for a way to set the date range for a date input, I would like the range to begin from the todays date and until today plus 1 year.
Is this possible with the phprunner calender or must I use a different one?
Thanks
Robert



If you have a look at this post, it may be possible to akllter things to suit your wants

date range

rjks author 9/20/2006

Hallo TheSofa,
thanks for the hint and link, I have already reduced the year range and can set the start year, what I need ist to stop input of dates before today and greater than i.e one year from today.
What would be nice is greying out the dates in the datepicker that are outside a given range, this would mean altering the calemder code in the Javascript include file if this is not already in the file.
If the parameter isn´t in the javascript class then I´ll do it with a different date picker there are some that have this feature.
Thanks again for the tip.
Robert

T
thesofa 9/20/2006

Hallo TheSofa,

thanks for the hint and link, I have already reduced the year range and can set the start year, what I need ist to stop input of dates before today and greater than i.e one year from today.
What would be nice is greying out the dates in the datepicker that are outside a given range, this would mean altering the calemder code in the Javascript include file if this is not already in the file.
If the parameter isn´t in the javascript class then I´ll do it with a different date picker there are some that have this feature.
Thanks again for the tip.
Robert



Hi Robert

Please note, I am thesofa, not TheSofa. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=11219&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />

I am totally uncapitalised!

If you can manage to shoehorn in a different datepicke easily, that allows date exclusion, I would really like to know about it.

It would appear that teachers are incapable of avoiding weekends.and avoiding days before today.

I would need to be able to set the date range differently depending on the page in the application, some pages need forward and reverse, whereas others just need forwards.

cheers

rjks author 9/21/2006

Hello Mr thesofa,
I will get back to you, if Admin can´t help me, with my solution to the date picker range.
I am off to merry old England for two weeks tomorrow and will then get back to this problem.
Robert

rjks author 10/11/2006

Morning Support,
having returned from my vacation I had hoped to find a reply to this question, as there isn´t one I´m reactivating it.
QUESTION:
I am looking for a way to set the date range for a date input, I would like the range to begin from the todays date and until today plus 1 year.
Is this possible with the phprunner calender or must I use a different one?
Thanks
Robert

J
Jane 10/11/2006

Robert,
to modify calendar (datapicker) edit include/calendar.js file.

For that you should be familiar with JavaScript.
Also you can use events to check added or edited values. Use Before record added or Before record updated events for this purpose.

T
thesofa 10/11/2006

Morning Support,

having returned from my vacation I had hoped to find a reply to this question, as there isn´t one I´m reactivating it.
QUESTION:
I am looking for a way to set the date range for a date input, I would like the range to begin from the todays date and until today plus 1 year.
Is this possible with the phprunner calender or must I use a different one?
Thanks
Robert



I hope you had a good time in Blighty, you should've let me know, we could have had a beer if you were far enough North!

The one here looks as if it will do what you want

Blueshoes

but this one looks absolutely wicked, with ranges and all sorts, of course, I haven't got a clue about how to patch it into my code, any help would be well appreciated!