Drop down menu selection activation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • E.T. Grey

    #1

    Drop down menu selection activation

    I have a form that is populated with a drop down list and a list box. I
    want to be able to automatically populate the list box, whenever a user
    selects a new item from the drop down list.

    Is there a way of doing this as soon as a new item is selected from the
    drop down box? (I'm trying to mimic a rich client interface in a web
    browser).

  • David Haynes

    #2
    Re: Drop down menu selection activation

    E.T. Grey wrote:[color=blue]
    > I have a form that is populated with a drop down list and a list box. I
    > want to be able to automatically populate the list box, whenever a user
    > selects a new item from the drop down list.
    >
    > Is there a way of doing this as soon as a new item is selected from the
    > drop down box? (I'm trying to mimic a rich client interface in a web
    > browser).
    >[/color]
    google javascript cascade select

    -david-

    Comment

    • E.T. Grey

      #3
      Re: Drop down menu selection activation



      David Haynes wrote:
      [color=blue]
      > E.T. Grey wrote:
      >[color=green]
      >> I have a form that is populated with a drop down list and a list box.
      >> I want to be able to automatically populate the list box, whenever a
      >> user selects a new item from the drop down list.
      >>
      >> Is there a way of doing this as soon as a new item is selected from
      >> the drop down box? (I'm trying to mimic a rich client interface in a
      >> web browser).
      >>[/color]
      > google javascript cascade select
      >
      > -david-
      >[/color]

      My bad (further clarification required). Is this possible without using
      javascript? - i.e. a PHP only solution?

      I had to pick up PHP in the last week (I'm from a C/C++/Java background)
      and do not really relish the thought of having to learn yet another
      'language' for my project ;-)

      Comment

      • E.T. Grey

        #4
        Re: Drop down menu selection activation



        E.T. Grey wrote:
        [color=blue]
        >
        >
        > David Haynes wrote:
        >[color=green]
        >> E.T. Grey wrote:
        >>[color=darkred]
        >>> I have a form that is populated with a drop down list and a list box.
        >>> I want to be able to automatically populate the list box, whenever a
        >>> user selects a new item from the drop down list.
        >>>
        >>> Is there a way of doing this as soon as a new item is selected from
        >>> the drop down box? (I'm trying to mimic a rich client interface in a
        >>> web browser).
        >>>[/color]
        >> google javascript cascade select
        >>
        >> -david-
        >>[/color]
        >
        > My bad (further clarification required). Is this possible without using
        > javascript? - i.e. a PHP only solution?
        >
        > I had to pick up PHP in the last week (I'm from a C/C++/Java background)
        > and do not really relish the thought of having to learn yet another
        > 'language' for my project ;-)
        >[/color]

        Ok. I'm a bit slow on the take this morning. I modified the google
        search - and came up with some good examples. thanks David

        Comment

        • Jerry Stuckle

          #5
          Re: Drop down menu selection activation

          E.T. Grey wrote:[color=blue]
          >
          >
          > David Haynes wrote:
          >[color=green]
          >> E.T. Grey wrote:
          >>[color=darkred]
          >>> I have a form that is populated with a drop down list and a list box.
          >>> I want to be able to automatically populate the list box, whenever a
          >>> user selects a new item from the drop down list.
          >>>
          >>> Is there a way of doing this as soon as a new item is selected from
          >>> the drop down box? (I'm trying to mimic a rich client interface in a
          >>> web browser).
          >>>[/color]
          >> google javascript cascade select
          >>
          >> -david-
          >>[/color]
          >
          > My bad (further clarification required). Is this possible without using
          > javascript? - i.e. a PHP only solution?
          >
          > I had to pick up PHP in the last week (I'm from a C/C++/Java background)
          > and do not really relish the thought of having to learn yet another
          > 'language' for my project ;-)
          >[/color]

          David,

          No, there's no way to do it automatically without javascript. PHP is
          server-side. It generates the HTML which is sent to the browser, but
          then it's work is done.

          What you need is something which runs on the browser side to submit your
          form back to the server when they user makes a selection - hence,
          javascript.

          Also, ensure you have an alternate means (i.e. a submit button) for
          those who have javascript turned off.


          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • Gleep

            #6
            Re: Drop down menu selection activation

            go here




            On Mon, 6 Feb 2006 14:04:24 +0000 (UTC), "E.T. Grey" <nebula@alpha-centauri.com> wrote:
            [color=blue]
            >I have a form that is populated with a drop down list and a list box. I
            >want to be able to automatically populate the list box, whenever a user
            >selects a new item from the drop down list.
            >
            >Is there a way of doing this as soon as a new item is selected from the
            >drop down box? (I'm trying to mimic a rich client interface in a web
            >browser).[/color]

            Comment

            Working...