Hi all,
I'm wondering if there is a way to create a javascript function to trigger an HTML Form's submit event without clicking the submit button.
I have a form with a List box (Select tag) and the user selcts from the list and clicks submit... then to some other action...
I wanted to add another level of usability by enabling the user to double-click the selection and have the form submit that selection.
Any insights on if this is possible? or how can this be done?
I've thought of using javascript and the onDblClick event, and collecting all the form's different elements, then stuffing them in a redirect URL with its parameter jammed full of the form's element names and values. But that would be double work, because the form's action already goes to an ASP page with a bunch of code... and I don't want to code the whole routine with a bunch of added if statements to see if the values were sent via the URL parmeters or via the submit...
Earnie Eng
I'm wondering if there is a way to create a javascript function to trigger an HTML Form's submit event without clicking the submit button.
I have a form with a List box (Select tag) and the user selcts from the list and clicks submit... then to some other action...
I wanted to add another level of usability by enabling the user to double-click the selection and have the form submit that selection.
Any insights on if this is possible? or how can this be done?
I've thought of using javascript and the onDblClick event, and collecting all the form's different elements, then stuffing them in a redirect URL with its parameter jammed full of the form's element names and values. But that would be double work, because the form's action already goes to an ASP page with a bunch of code... and I don't want to code the whole routine with a bunch of added if statements to see if the values were sent via the URL parmeters or via the submit...
Earnie Eng