Chris__T
Posts: 339
|
| Posted: 03/04/2008, 10:45 AM |
|
Is it possible to have no links for a date shown in calendar pop up based on dates that are already in database?
For instance, let's say March 1,2,3 data have already been entered in a database. Now the user wants to add a new database entry for march 2nd, and up pops the calendar. I want it to show no links for march 1,2,3 and have links for the rest of march. I'm sure it would be some kind of if-then compared to a date in the database.
|
 |
 |
wkempees
|
| Posted: 03/04/2008, 1:13 PM |
|
Chris,
As the datepicker is a Js in the directory 'Js' and it is a rather standard
one, well documented fortunately,
you would have to find one of us (forummembers) to be able to implement
either a database read against your table to be implemeted in the date
building loop, or find a way to feed the datepicker a list of unselectable
values as a parameter.
It is out of my league, but who knows.
Walter
"Chris__T" <Chris__T@forum.codecharge> schreef in bericht
news:647cd98db3a6ce@news.codecharge.com...
> Is it possible to have no links for a date shown in calendar pop up based
> on
> dates that are already in database?
>
> For instance, let's say March 1,2,3 data have already been entered in a
> database. Now the user wants to add a new database entry for march 2nd,
> and up
> pops the calendar. I want it to show no links for march 1,2,3 and have
> links
> for the rest of march. I'm sure it would be some kind of if-then compared
> to a
> date in the database.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Chris__T
Posts: 339
|
| Posted: 03/06/2008, 11:17 AM |
|
Thanks, Walter. Maybe I'll just do some kind of conditional function when the user hits the submit button for the date.
Like: User enters 3/6/08. Hits "enter". Code checks to see if any 3/6/08 records are in database. If they are, tell user they can't add this date. If not, then let user add info for this date.
|
 |
 |
|