DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links