Skip to main content
Inspiring
January 27, 2009
Question

Populate a select Box without reloading Page

  • January 27, 2009
  • 2 replies
  • 2176 views
I have about three to four select boxes (dropdowns), that I want to populate the next select drop down based on user selection from the previous select dropdown and vise versa without having a page reload. This is an app we are migrating from flash to CF because of too much problem with flash.
Please can you show examples of doing this
    This topic has been closed for replies.

    2 replies

    Astonished_protector15C3
    Participating Frequently
    January 29, 2009
    Hi eziokolo,

    You have to use AJAX to populate the data from the database

    If you are using the hardcoded value then you have to use simple javascript
    eziokoloAuthor
    Inspiring
    January 29, 2009
    This is really not working for me. I have been able to use AJAX to populate the Select Dropdown Options. The problem I am having now is to, based on the Last of the Four Dropdown Seect options. To capture the selected value and pass that as an argument to a CFC to return a query that I will use to pupulate other Text Boxes also a Table or a Grid.

    PS Help please needed with examples.

    Thanks
    E
    Inspiring
    January 29, 2009
    quote:

    Originally posted by: eziokolo
    This is really not working for me. I have been able to use AJAX to populate the Select Dropdown Options. The problem I am having now is to, based on the Last of the Four Dropdown Seect options. To capture the selected value and pass that as an argument to a CFC to return a query that I will use to pupulate other Text Boxes also a Table or a Grid.

    PS Help please needed with examples.

    Thanks
    E

    One step at a time. Are you able to capture value?

    Also, forget about grids. They are either applets or movies, neither of which plays with javascript.
    Inspiring
    January 27, 2009
    google "coldfusion related selects" or "coldfusion chained selects"

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    eziokoloAuthor
    Inspiring
    January 28, 2009
    Thanks Azadi, It looks like this method is only for Select dropdown options Only. The page I am working on has textboxes also that has to be refreshed with data when the selection from the the final select drop down is selected.

    Is there a way I can get this done without reloading or refreshing the page? I mean refresh data in the Select Drop down and textboxes?

    Thanks
    E