You are here: Re: month and day of month edit fields « PHP Programming Language « IT news, forums, messages
Re: month and day of month edit fields

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация