dynamic drop down menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jorntk@yahoo.com

    dynamic drop down menu

    How can i make a drop down menu that are dynamiclly generated base on
    the value selected in another drop down menu?

    thanks nad regards

    Jorn
  • Jochen Daum

    #2
    Re: dynamic drop down menu

    Hi,

    On 19 Apr 2004 21:24:20 -0700, jorntk@yahoo.co m (jorntk@yahoo.c om)
    wrote:
    [color=blue]
    >How can i make a drop down menu that are dynamiclly generated base on
    >the value selected in another drop down menu?[/color]

    Do you want it woth or without a page reload?

    With:

    Lookup how to do a dynamic dropdown (from a database I presume) and
    add the posted value from the other dropdown to the database query.

    Without:

    PHp is server-side, try JavaScript

    HTH,

    Jochen[color=blue]
    >
    >thanks nad regards
    >
    >Jorn[/color]

    --
    Jochen Daum - Cabletalk Group Ltd.
    PHP DB Edit Toolkit -- PHP scripts for building
    database editing interfaces.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

    Comment

    • jorntk@yahoo.com

      #3
      Re: dynamic drop down menu

      how to use javascript to generated drop down menu from data in mysql database?

      thanks and regard

      Jorn

      Comment

      • Alex Shi

        #4
        Re: dynamic drop down menu

        Can you give more detail about your situation?
        [color=blue]
        > How can i make a drop down menu that are dynamiclly generated base on
        > the value selected in another drop down menu?
        >
        > thanks nad regards
        >
        > Jorn[/color]

        Comment

        • Jochen Daum

          #5
          Re: dynamic drop down menu

          Hi,

          On 20 Apr 2004 03:35:28 -0700, jorntk@yahoo.co m (jorntk@yahoo.c om)
          wrote:
          [color=blue]
          >how to use javascript to generated drop down menu from data in mysql database?
          >[/color]
          Generate the dropdowns with PHP, but also generate the appropriate
          Javascript.

          Jochen
          --
          Jochen Daum - Cabletalk Group Ltd.
          PHP DB Edit Toolkit -- PHP scripts for building
          database editing interfaces.
          Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

          Comment

          • Chung Leong

            #6
            Re: dynamic drop down menu

            "Jochen Daum" <jochen.daum@ca bletalk.co.nz> wrote in message
            news:fq1b801i3p 18ngctpoe51u45h 6mcv54i38@4ax.c om...[color=blue]
            > Hi,
            >
            > On 20 Apr 2004 03:35:28 -0700, jorntk@yahoo.co m (jorntk@yahoo.c om)
            > wrote:
            >[color=green]
            > >how to use javascript to generated drop down menu from data in mysql[/color][/color]
            database?[color=blue][color=green]
            > >[/color]
            > Generate the dropdowns with PHP, but also generate the appropriate
            > Javascript.
            >
            > Jochen
            > --
            > Jochen Daum - Cabletalk Group Ltd.
            > PHP DB Edit Toolkit -- PHP scripts for building
            > database editing interfaces.
            > http://sourceforge.net/projects/phpdbedittk/[/color]

            Or generate all possible drop-downs through PHP, then show and hide them
            using Javascript.


            Comment

            • jorntk@yahoo.com

              #7
              Re: dynamic drop down menu

              > Can you give more detail about your situation?

              i am creating a ecommerce website that sell holiday package, when a
              customer select a package it can chose the hotel it want if there is
              more than one available then they can select from the types of room
              the hotel has.

              Comment

              • Jens Michlo

                #8
                Re: dynamic drop down menu

                try google and search for "jsrs" (javascript remote scripting)

                <jorntk@yahoo.c om> schrieb im Newsbeitrag
                news:e9da850b.0 404201942.59fc3 14@posting.goog le.com...[color=blue][color=green]
                > > Can you give more detail about your situation?[/color]
                >
                > i am creating a ecommerce website that sell holiday package, when a
                > customer select a package it can chose the hotel it want if there is
                > more than one available then they can select from the types of room
                > the hotel has.[/color]


                Comment

                Working...