creating dynamic select field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shane3341436
    New Member
    • Mar 2007
    • 63

    creating dynamic select field

    I heard that ajax is very powerful for creating dynamic web pages. Is there any way to create a dynamic select field. Like I have two select fields and take data from the database. When choosing a particular item in first select field then its sub categories should be displayed on the second select field. Is it possible to do this without reloading the page?
  • shane3341436
    New Member
    • Mar 2007
    • 63

    #2
    creating dynamic select field

    I heard that ajax is powerful tool for creating dynamic web pages. Is there any way to make the select field dynamic. For example I have two select fields and I have fill data from the database. When changing the option in first select field its subcategories should be diplayed on the second select field. Is this possible to do without reloading the page?

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      hi ...

      of course ... you may have a look at some ajax tutorials that are mentioned in the offsite links at top of the js-forum, at our js-articels ajax-section and at least for example the following 2 threads:

      Dynamic drop down menu?
      How can I assign value to a hidden field from a select?

      kind regards

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Heya, Shane.

        Run over to our search page and search for 'dependent drop down'.

        Comment

        • epots9
          Recognized Expert Top Contributor
          • May 2007
          • 1352

          #5
          Yes it is possible, but you want the JavaScript Forums. Once there post the code you are having trouble with and they will assist you.

          thank you

          Comment

          • iam_clint
            Recognized Expert Top Contributor
            • Jul 2006
            • 1207

            #6
            very possible and very easy, In this javascript forum there is a stickied thread called Offsite Links, and in there theres a Category called Ajax I believe you can get most of what you need out of those tutorial and informational links.
            If you need more help after you attempt to make an ajax query yourself post back with the problems you are having or if you don't understand something post back and we'll try to explain it.

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Merged duplicate threads.

              Comment

              • sanjay123456
                New Member
                • Sep 2006
                • 125

                #8
                Dear Friends ,


                Can i do it same work without using Ajax means using only java- script .... |????



                sanjay

                Comment

                • gits
                  Recognized Expert Moderator Expert
                  • May 2007
                  • 5388

                  #9
                  hi ...

                  of course ... have a look at the links in post #3 ...

                  kind regards

                  Comment

                  Working...