Mixing scripting languages is a pain, but heres one way
Call a javascript function from the Select box:
<select name=SelectBoxName
onChange=ChangeFunction(this.options[SelectBoxName.selectedIndex].value,this.options[SelectBoxName.selectedIndex].text)>
The javascript function that effectively does a redirect to the same page with your
selection in the querystring:
function ChangeFunction(value,text) {
alert("You have selected "+ text +")
location = "?ID="+ value +"&Show=Change"
}
Then process the querystring:
strShow = request("Show")
If strShow = "Change" Then
ProcessingSub(request("ID"))
End If
dekel78 <[EMAIL PROTECTED]> wrote:
Hello,
I want that each time the user has changed his selection,
to call a function that will search the item in the database
and fill other details about the selected item.
this is my code but it wont work:
<form action=test.asp method=post name=Details>
<select size="1" name="cmbCustomer" dir="ltr" onchange= "<% call
PrintName(this.options[this.selectedIndex].text) %>" >
<%
Sub PrintName(txtName)
Details.txtName.value = txtName
End sub
%>
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/