Call a procedure from onchange

Results 1 to 2 of 2

Thread: Call a procedure from onchange

  1. #1
    Join Date
    Dec 1969

    Default Call a procedure from onchange

    Hi<BR><BR>I have a form with a dropdown-menu. Now I want to call a procedure if someone selects an entry of the dropdown.<BR><BR>something like this:<BR>&#060;select name="ID0" id="ID0" size="1" onchange=&#060;%TestData()%&#062;&#062;<BR><BR>Is this possible? How?<BR><BR>Thanks<BR>Ingrid

  2. #2
    Join Date
    Dec 1969

    Default RE: Call a procedure from onchange

    onChange is a client side event, therefore the function called must run at the client...<BR><BR>&#060;select name="ID0" id="ID0" size="1" onchange="javascriptFunctionName();"&#062;<BR><BR> or<BR><BR>&#060;select name="ID0" id="ID0" size="1" onchange="vbScriptFunctionName();"&#062;<BR><BR>if that&#039;s your thing.<BR><BR>What you can&#039;t do is call a server side asp function or procedure, but you can submit the form if that helps..<BR><BR>&#060;select name="ID0" id="ID0" size="1" onchange="document.forms.formName.submit();"&#062; <BR><BR>Hope this helps<BR><BR>Elija<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts