date format in forms?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gmuldoon

    #16
    Re: date format in forms?

    @julietremblay. com.invalid says...
    [color=blue]
    > It's trivial to look up a city/state by zip code.[/color]

    Only if your app is purely US-centric.

    street Address: 1 High Street
    zip code: 2480
    country: Australia

    In Australia, this could end up as being any one of half a dozen
    different addresses. Multiple nearby small towns or suburbs can share a
    common "zip" code (postcode). There is definitely no uniqueness of
    street names within a postcode.

    Geoff M

    Comment

    • Brian

      #17
      Re: date format in forms?

      gmuldoon wrote:
      [color=blue]
      > Brian says...
      >[color=green]
      >>It's trivial to look up a city/state by zip code.[/color]
      >
      > Only if your app is purely US-centric.[/color]

      Or France-centric, or Germany-centric, or...
      [color=blue]
      > street Address: 1 High Street
      > zip code: 2480
      > country: Australia
      >
      > In Australia, this could end up as being any one of half a dozen
      > different addresses. Multiple nearby small towns or suburbs can share a
      > common "zip" code (postcode). There is definitely no uniqueness of
      > street names within a postcode.[/color]

      That's surprising, and good to know. So what does the postal code add
      to addresses in Australia?

      --
      Brian (remove ".invalid" to email me)

      Comment

      • gmuldoon

        #18
        Re: date format in forms?

        @julietremblay. com.invalid says...
        [color=blue][color=green]
        > > 1 High Street
        > > zip code: 2480
        > > country: Australia
        > >
        > > In Australia, this could end up as being any one of half a dozen
        > > different addresses. Multiple nearby small towns or suburbs can share a
        > > common "zip" code (postcode). There is definitely no uniqueness of
        > > street names within a postcode.[/color]
        >
        > That's surprising, and good to know. So what does the postal code add
        > to addresses in Australia?[/color]

        Nominates a preliminary postal distribution centre for subsequent
        further manual sorting, where local staff will filter on the
        city/town/suburb and then street fields.

        In the above example 2480, the leading digit of the postcode indicates
        the state (NSW/ACT=2, VIC=3, QLD=4, etc), the 480 takes it within NSW to
        the Lismore distribution centre.

        2480 can mean Lismore (city), Goonellabah (suburb of Lismore), Nimbin
        (village 30km from city), Dorroughby (rural district), etc. Just
        checked using link below - 72 different delivery areas! At least 3-4
        High Streets that I know of in that set.

        2481 will go to nearby Byron Bay distribution centre (for Byron Bay,
        Suffolk Park, etc.)

        See:


        Geoff M

        Comment

        • Pierre Goiffon

          #19
          Re: date format in forms?

          "gmuldoon" <gmuldoon_nospa m@scu.edu.au> a écrit dans le message de
          news:MPG.1b61c8 faac414e1c98972 1@news.asgard.n et.au[color=blue]
          > street Address: 1 High Street
          > zip code: 2480
          > country: Australia
          >
          > In Australia, this could end up as being any one of half a dozen
          > different addresses.[/color]

          In france a Zip code could also be shared by several towns, so the same
          number and street name for a given zip code could possibly belong to one
          town or another.

          Comment

          • Brian

            #20
            Re: date format in forms?

            Pierre Goiffon wrote:
            [color=blue]
            > In france a Zip code could also be shared by several towns, so the same
            > number and street name for a given zip code could possibly belong to one
            > town or another.[/color]

            I was about to argue with you when I remembered where you're from.
            ;-) But this suprised me even more than the news about Australian
            codes. AIUI, each town or city gets a 2 digit code -- the first two
            digits of the postal code -- and uses the last 3 digits for internal
            use (e.g., divide by arrondisement). But I suppose the rural regions
            are different, and share a 2 digit code among several towns?

            --
            Brian (remove ".invalid" to email me)

            Comment

            • Claire Tucker

              #21
              Re: date format in forms?

              On Thu, 15 Jul 2004 16:16:02 +0000 (UTC), "Jukka K. Korpela"
              <jkorpela@cs.tu t.fi> wrote:
              [color=blue]
              >Yes, and most use of dates requires a separation of year, month, day of
              >month. But how you achieve that is a different thing. Maybe I'm strange,
              >but I find it more comfortable to type 2004-07-15 or 2004 07 15 or
              >whatever needs to be typed than to type 2004 followed by 07 followed by
              >15 in three different fields, _even if_ there's "auto-tabbing" (i.e., the
              >cursor automatically moves to the second field after I have typed in four
              >digits into the first one) and even though I know well the idea behind
              >that. A date is a unit of information to me. So is my name, but I find it
              >much more natural to use different fields for the different components of
              >the name.[/color]

              Your post inspired me to try the use of CSS to present three form
              fields as one. The following fragments give the gist:

              ..dateinput {
              border: 2px inset #eeeeee;
              background: #ffffff;
              color: #000000;
              }

              ..dateinput input {
              border: 0;
              text-align: center;
              }

              .....

              <span class="dateinpu t">
              <input type="text" size="4" maxlength="4"> -
              <input type="text" size="2" maxlength="2"> -
              <input type="text" size="2" maxlength="2">
              </span>

              This appears, in IE and Firefox on Windows, like a single text field
              with three input parts separated by hyphens. It's a bit like the
              fields Windows uses for entry of numeric IP addresses in Control
              Panel. Some scripting would be necessary to implement the
              "auto-tabbing" behavior.

              Of course, there's no way in CSS to say "make this look like a text
              field", so the specification of the dateinput class is specific to my
              configuration in Windows, but I wonder if you would find this entry
              more natural since it looks like one field.

              (I don't necessarily recommend the above approach. It's just an
              experiment.)

              -Claire

              Comment

              • Leif K-Brooks

                #22
                Re: date format in forms?

                Claire Tucker wrote:[color=blue]
                > Your post inspired me to try the use of CSS to present three form
                > fields as one. The following fragments give the gist:
                > <snip>[/color]


                Doesn't look right in Firefox 0.9 on Fedora Core 2:

                Comment

                • Claire Tucker

                  #23
                  Re: date format in forms?

                  On Sun, 18 Jul 2004 18:59:29 -0400, Leif K-Brooks
                  <eurleif@ecritt ers.biz> wrote:
                  [color=blue]
                  >Claire Tucker wrote:[color=green]
                  >> Your post inspired me to try the use of CSS to present three form
                  >> fields as one. The following fragments give the gist:
                  >> <snip>[/color]
                  >
                  >
                  >Doesn't look right in Firefox 0.9 on Fedora Core 2:
                  >http://ecritters.biz/inputfieldthing.png[/color]

                  Well, as I noted there is really no way to make it look "right" if
                  that means to look like a normal INPUT field would look, since CSS
                  doesn't allow rules to borrow style properties from other selectors.

                  I expected it to do odd things in some cases, since the properties I
                  chose to set were very limited. In order to safely re-style INPUT
                  fields (which is, of course, a bad idea in most cases) it's best to
                  override a whole tonne of different properties to ensure that no
                  browser has an odd rules in its user-agent stylesheet which give
                  unexpected results.

                  With that said, Firefox's rendering is quite odd. I wonder what CSS
                  properties made it draw the input field background over the border of
                  the parent...

                  Best regards,
                  -Claire

                  Comment

                  • Leif K-Brooks

                    #24
                    Re: date format in forms?

                    Claire Tucker wrote:[color=blue]
                    > With that said, Firefox's rendering is quite odd. I wonder what CSS
                    > properties made it draw the input field background over the border of
                    > the parent...[/color]

                    Without doing any testing, my guess is that the input box has a height
                    greater than 1em, so its background covers the span's border.

                    Comment

                    • Pierre Goiffon

                      #25
                      Re: date format in forms?

                      "Brian" <usenet3@juliet remblay.com.inv alid> a écrit dans le message de
                      news:10ffq6uq8c o4b1c@corp.supe rnews.com[color=blue][color=green]
                      >> In france a Zip code could also be shared by several towns, so the
                      >> same number and street name for a given zip code could possibly
                      >> belong to one town or another.[/color]
                      >
                      > I was about to argue with you when I remembered where you're from.
                      > ;-)[/color]

                      :)
                      I answered beacause I practice mutch this subject in my last job - I worked
                      4 years for www.Webcity.fr, a cultural news website for citizens, the place
                      where you can find what to do tonight in your town, all the concerts for the
                      months to come and mutch more (to summarize it's a cultural agenda and an
                      adressbook). So as the site at this time covered more than 80 towns in
                      France, the question of zip codes was pretty important in our database.
                      [color=blue]
                      > AIUI, each town or city gets a 2 digit code -- the first two
                      > digits of the postal code -- and uses the last 3 digits for internal
                      > use (e.g., divide by arrondisement). But I suppose the rural regions
                      > are different, and share a 2 digit code among several towns?[/color]

                      Not exactly. France has a long history, and a long tradition of
                      administrations , so it's a bit complicated. First, there are two main
                      nomenclatures used in France : postal zip codes (PTT) and INSEE ones. For
                      adress, that's of course the first to consider.

                      Now, France is divided in /régions/, and then in /départements/ (not sure of
                      the translations sorry, and I'm afraid it is one of these "faux ami" words :
                      exactly the same orthography but not the same meaning at all).

                      So, the regions are identified by their names, and departements have an
                      associated unique number. For exemple I'm now writing to you from St Martin
                      d'Hères in the /département/ "Isère" (38), /région/ "Rhônes Alpes". The zip
                      code is 38400, and the first two numbers are as you can see the number of
                      the /département/. A few month ago I was living in the same /région/ but
                      another departement, "Ain" and the postal zip code begins with 01, the "Ain"
                      number. You can see also this /département/ number at the end of all french
                      car number plates (exemple 4821 WX 38).

                      For metropolitan France (the DOM/TOM -Guyane, St Pierre et Miquelon, ...-
                      have a different structure of postal zip codes I think) the 3 last numbers
                      are to identified the place where you leave in that /département/. Whitch is
                      not the /commune/ (town) neither a /groupement de communes/ (towns union),
                      neither a /canton/ (group of towns defined for elections). I don't know at
                      all the origin of this division, why some towns have the same postal zip
                      code... Well, must be some french postal employees that decide this a long
                      time ago. As for other public services, postal services are a state monopoly
                      in France and we're really used to these kind of situations :)

                      Comment

                      • Pierre Goiffon

                        #26
                        Re: date format in forms?

                        "Claire Tucker" <fake@invalid.i nvalid> a écrit dans le message de
                        news:hjqlf01jcs fljcjdkkn06e767 6scvi7knn@4ax.c om[color=blue]
                        > Your post inspired me to try the use of CSS to present three form
                        > fields as one. The following fragments give the gist:
                        >
                        > .dateinput {
                        > border: 2px inset #eeeeee;
                        > background: #ffffff;
                        > color: #000000;
                        > }
                        >
                        > .dateinput input {
                        > border: 0;
                        > text-align: center;
                        > }
                        >
                        > ....
                        >
                        > <span class="dateinpu t">
                        > <input type="text" size="4" maxlength="4"> -
                        > <input type="text" size="2" maxlength="2"> -
                        > <input type="text" size="2" maxlength="2">
                        > </span>[/color]

                        For non CSS browser you should at least add signifiant labels for each input
                        tag. You could hide them if CSS is enabled via a display:none for exemple

                        Comment

                        Working...