select_date_helper

J

Josselin

this helper is not complete... there is nolink between month choice and
month_day..
so It's possible to select February 31st..
Is it impossible to modify it ?

joss
 
J

Jonathan Heinen

Josselin said:
this helper is not complete... there is nolink between month choice and
month_day..
so It's possible to select February 31st..
Is it impossible to modify it ?

joss

if you want to something like that you have write JavaScript Code to
observe the month field and update the possible choices acording to the
selected month ... You have to decide what will happen if some one
select the 30 of January and change to February will you change the date
to 28 of Feb? and to 29 if Feb in this month has 29 days!? It's a lot of
JavaScript Code you need and It'will only work if JavaScript is enabled ...

I think you can validate the dates when they arraive the server and send
an error if the date isn't valid!

Jonathan
 
J

Josselin

if you want to something like that you have write JavaScript Code to
observe the month field and update the possible choices acording to the
selected month ... You have to decide what will happen if some one
select the 30 of January and change to February will you change the
date to 28 of Feb? and to 29 if Feb in this month has 29 days!? It's a
lot of JavaScript Code you need and It'will only work if JavaScript is
enabled ...

I think you can validate the dates when they arraive the server and
send an error if the date isn't valid!

Jonathan

thanks for your comments, I thought that in web 2.0, Ajax could be
helpful sending back a day select according to user selection ? but
you're right about client JS vs server checking ...

joss
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,074
Members
47,679
Latest member
Justforamoment

Latest Threads

Top