Results 1 to 3 of 3

Thread: Simulate Form Submission

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    142
    I want to simulate a form submission when the user selects something from a drop-down list, instead of having him/her clicking the submit button.

    I'm thinking something like the following:

    Code:
    <SCRIPT LANGUAGE=vbscript>
    <!--
    
    Sub selectMenu_onafterupdate
    
       document.myform.mySumbitButton = clicked
    
    End Sub
    
    -->
    </SCRIPT>
    Is this the correct way to simulate a click of a button? Will simply simulating the click of the submit button cause the form to be submitted?

    Thanks.

    dvst8
    Secret to long life:
    Keep breathing as long as possible.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    142
    OK...
    I've found out that the proper method to invoke is:

    Code:
    document.myForm.mySubmit.click()
    easy

    one other question though, i want this to fire when the user selects something from the drop down menu. there is no onSelect event for a select list. does anyone know the proper event?

    tx
    /d8
    Secret to long life:
    Keep breathing as long as possible.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    142

    case closed

    onpropertychange
    Secret to long life:
    Keep breathing as long as possible.

Posting Permissions

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



Click Here to Expand Forum to Full Width