![]() |
|
#1
|
|||
|
|||
|
Hello,
This is a really nice calendar, unfortunately it did not quite meet my needs - I need to allow dates to be selected that are in the past. I have modified the script to allow this. It might not be the nicest way to do it (almost no comments in the code make it a bit difficult) but the new script is attached. It works well for me. By default past dates are not allowed (usual behavior) but you can allow them by calling setAllowPast(1). For example, below is my code to make the text area: <input type="text" value="<?print date("d/m/Y");?>" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select(); setAllowPast(1); lcs(this)"> calendar.js.zip Last edited by rgraham : 07-12-2007 at 01:05 AM. |
|
#2
|
|||
|
|||
|
Hello
this modification is a great improvement, many thanks :-) but it only works in one direction : if you set the calendar on 1/1/2007 and click on the right arrow, the calendar jumps to august 2007 (it takes 2 clicks, actually) is there anything you can do ? |
|
#3
|
|||
|
|||
|
that is not new! we already got those functions.... just search a little bit
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|