-
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
-
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
Forum Rules
|
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
|
Bookmarks