Comboboxes Autosubmit


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Comboboxes Autosubmit

  1. #1
    Raja Guest

    Comboboxes Autosubmit


    Hi all,

    I am showing a combo box (populated from a database)
    on an ASP Page . On change in an item I need to query the database to show
    a series of checkboxes based on the selection with the combo box still
    on top in the same page.

    Any ideas how to do this?.

    Thanks,
    Raja

  2. #2
    thiruthanikan Guest

    Re: Comboboxes Autosubmit


    hi,try this
    <head>
    <script>
    function myOnChange() {
    var list = document.form1.select1;
    var listValue = list.options[list.selectedIndex].value;
    window.location.href = "self.asp?lval=" + listvalue + "?det=1"
    }
    </script>
    </head>
    <body>
    ... <% if request.querystring("det")=""

    database operations

    %>
    <FORM NAME="form1" action="self.asp"method=post>
    <LABEL>Go to slide:
    <SELECT
    NAME="select1"
    SIZE="1"
    ONCHANGE="myOnChange()">
    <OPTION VALUE="x">x</OPTION>
    <OPTION VALUE="y">y</OPTION>
    <OPTION VALUE="z">z</OPTION>

    </SELECT>
    </LABEL>
    </FORM>
    <% else %>

    display checkboxes here

    <% end if%>


    </body>


    "Raja" <arch_and@yahoo.co.uk> wrote:
    >
    >Hi all,
    >
    >I am showing a combo box (populated from a database)
    >on an ASP Page . On change in an item I need to query the database to

    show
    >a series of checkboxes based on the selection with the combo box still
    >on top in the same page.
    >
    >Any ideas how to do this?.
    >
    >Thanks,
    >Raja



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center