SELECT OPTION: changing dynamically

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

    #1

    SELECT OPTION: changing dynamically

    Hi
    I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
    second is for CITY. If I change the STATE, CITY should also be updated
    and of course it will be having respective cities
    How to accomplish this ?
    I need quick reply, plz
    Thnaks
  • Lee

    #2
    Re: SELECT OPTION: changing dynamically

    Philip said:[color=blue]
    >
    >On 03.8.3 9:52 PM, David Clark wrote:
    >[color=green]
    >> Hi
    >> I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
    >> second is for CITY. If I change the STATE, CITY should also be updated
    >> and of course it will be having respective cities
    >> How to accomplish this ?
    >> I need quick reply, plz
    >> Thnaks[/color]
    >
    >Easy. Get rid of the list boxes.
    >
    >Instead, use text input boxes with meaningful names (e.g., "street", "city",
    >"state", "zip", etc.).
    >
    >That way the user can fill your form in with a single click of the "Auto
    >Complete" button.[/color]

    Ok, where's my "Auto Complete" button?

    Comment

    • Philip Ronan

      #3
      Re: SELECT OPTION: changing dynamically

      On 03.8.3 11:29 PM, Lee wrote:
      [color=blue]
      > Philip said:[color=green]
      >>
      >> On 03.8.3 9:52 PM, David Clark wrote:
      >>[color=darkred]
      >>> Hi
      >>> I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
      >>> second is for CITY. If I change the STATE, CITY should also be updated
      >>> and of course it will be having respective cities
      >>> How to accomplish this ?
      >>> I need quick reply, plz
      >>> Thnaks[/color]
      >>
      >> Easy. Get rid of the list boxes.
      >>
      >> Instead, use text input boxes with meaningful names (e.g., "street", "city",
      >> "state", "zip", etc.).
      >>
      >> That way the user can fill your form in with a single click of the "Auto
      >> Complete" button.[/color]
      >
      > Ok, where's my "Auto Complete" button?
      >[/color]

      It's not my problem if you don't know how to work your goddamn browser.

      --
      Philip Ronan
      phil.ronanzzz@v irgin.net
      (Please remove the "z"s if replying by email)


      Comment

      • lallous

        #4
        Re: SELECT OPTION: changing dynamically

        Hello,



        This is a long example try to find your answer there.

        Elias


        Comment

        • Fred Serry

          #5
          Re: SELECT OPTION: changing dynamically


          "David Clark" <david_clark_87 @hotmail.com> schreef in bericht
          news:2830c1ef.0 308031252.1b676 ca7@posting.goo gle.com...[color=blue]
          > Hi
          > I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
          > second is for CITY. If I change the STATE, CITY should also be updated
          > and of course it will be having respective cities
          > How to accomplish this ?
          > I need quick reply, plz
          > Thnaks[/color]

          Hi,



          This is tested for ie4+, ns4, mozilla1.3 and opera7. btw: most of them don't
          autocomplete.

          Fred


          Comment

          • Philip Ronan

            #6
            Re: SELECT OPTION: changing dynamically

            On 03.8.4 9:31 PM, Fred Serry wrote:
            [color=blue]
            >
            > "David Clark" <david_clark_87 @hotmail.com> schreef in bericht
            > news:2830c1ef.0 308031252.1b676 ca7@posting.goo gle.com...[color=green]
            >> Hi
            >> I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
            >> second is for CITY. If I change the STATE, CITY should also be updated
            >> and of course it will be having respective cities
            >> How to accomplish this ?
            >> I need quick reply, plz
            >> Thnaks[/color]
            >
            > Hi,
            >
            > http://www.serry.net/javascript/select.html
            >
            > This is tested for ie4+, ns4, mozilla1.3 and opera7. btw: most of them don't
            > autocomplete.
            >
            > Fred
            >
            >[/color]

            But what's the point? To get the OP's plan working you would have to create
            a js file containing a list of every single city in every single state of
            the US (well let's not bother about the rest of the world for the time
            being) and force the user to download it every time they visit the page.

            So the user will probably have to wait far longer for the page to download
            than it would have taken just to type in their address in the first place.
            Even if they can't find the Auto Complete button

            Besides, the user will still have to enter the street address and phone
            number, unless you're planning on including a few million pages out of the
            phone book into this js file.

            And how are text-to-speech browsers going to cope with this? Or browsers
            with Javascript turned off?

            ....OK, I'll shut up now :-)

            --
            Philip Ronan
            phil.ronanzzz@v irgin.net
            (Please remove the "z"s if replying by email)


            Comment

            • Fred Serry

              #7
              Re: SELECT OPTION: changing dynamically


              "Philip Ronan" <phil.ronanzzz@ virgin.net> schreef in bericht
              news:BB5483E4.1 7674%phil.ronan zzz@virgin.net. ..[color=blue]
              > On 03.8.4 9:31 PM, Fred Serry wrote:
              >[color=green]
              > >
              > > "David Clark" <david_clark_87 @hotmail.com> schreef in bericht
              > > news:2830c1ef.0 308031252.1b676 ca7@posting.goo gle.com...[color=darkred]
              > >> Hi
              > >> I have two list boxes( i.e. SELECT OPTION ), one is for STATE and
              > >> second is for CITY. If I change the STATE, CITY should also be updated
              > >> and of course it will be having respective cities
              > >> How to accomplish this ?
              > >> I need quick reply, plz
              > >> Thnaks[/color]
              > >
              > > Hi,
              > >
              > > http://www.serry.net/javascript/select.html
              > >
              > > This is tested for ie4+, ns4, mozilla1.3 and opera7. btw: most of them[/color][/color]
              don't[color=blue][color=green]
              > > autocomplete.
              > >
              > > Fred
              > >
              > >[/color]
              >
              > But what's the point? To get the OP's plan working you would have to[/color]
              create[color=blue]
              > a js file containing a list of every single city in every single state of
              > the US (well let's not bother about the rest of the world for the time
              > being) and force the user to download it every time they visit the page.
              >
              > So the user will probably have to wait far longer for the page to download
              > than it would have taken just to type in their address in the first place.
              > Even if they can't find the Auto Complete button
              >
              > Besides, the user will still have to enter the street address and phone
              > number, unless you're planning on including a few million pages out of the
              > phone book into this js file.
              >
              > And how are text-to-speech browsers going to cope with this? Or browsers
              > with Javascript turned off?
              >
              > ...OK, I'll shut up now :-)
              >
              > --
              > Philip Ronan
              > phil.ronanzzz@v irgin.net
              > (Please remove the "z"s if replying by email)
              >
              >[/color]

              Hi Philip,

              First of all, OP never stated that his intent was to produce an exhoustive
              list of all cities in the USA, nor that his page is used to enter personal
              data. As far as I'm concerned he is making a list of bus destinations on the
              Fiji Islands or a picker for coconut plantations in Denmark. Your guess to
              those facts were just that: guesses. My reason to answer was that his actual
              question was not.

              Fred


              Comment

              • Lasse Reichstein Nielsen

                #8
                Re: SELECT OPTION: changing dynamically

                "Fred Serry" <geen.mail@hotm ail.com> writes:
                [color=blue]
                > a list of bus destinations on the Fiji Islands or[/color]

                'Every town and village has a bus stop'
                <URL:http://fiji-backpacking.com/transport/bus-taxi.html>
                So that's just a list of towns and villages of Fiji.
                [color=blue]
                > a picker for coconut plantations in Denmark.[/color]

                That one is easy, the code is between the "---"'s;
                ---

                ---

                /L 'Dane'
                --
                Lasse Reichstein Nielsen - lrn@hotpop.com
                Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
                'Faith without judgement merely degrades the spirit divine.'

                Comment

                Working...