|
Posted by Rik on 02/20/07 09:14
Kimmo Laine <spam@outolempi.net> wrote:
> "Johannes Vogel" <newsgroups@jvogel.ch> wrote:
>> Richard wrote:
>>> I wish to have a month select and next to it a day select.
>>> Is there no way at all for the day field to pick up the selected month
>>> without a previous submit on the part of the user?
>>
>> Client side programming languages i.e. JavaScript (AJAX)...
>
> Fuck Ajax. There's no need to get all ajaxy and "hey look at me I'm so
> web2.0" for something as trivial as testing wether february has 28 or 29
> days. All other months are constants, they have either 31 or 30 days,
> then
> you just populate the day select with given number of days. What the hell
> would you do with ajax?
Well, if you want to limit the choices in the day after selecting the
month, without a submit in between, certainly some client side code is in
order. However, most people are smart enough to select real dates, and if
someone was to select for instance 31/04, my code usually just assumes
they mean 01/05.
--
Rik Wasmus
Navigation:
[Reply to this message]
|