Uncle Ron
01-08-2003, 04:38 PM
The site I am working on is an intranet that allows the user to make changes to their own data. First they select one of their customers (called GROUPs). The balance of the form is filled in from the data base. Then the user can make any changes needed and update the data base.
Currently the user selects from a list of their customers and clicks on a "GET GROUP" button which uses CGI/PERL to retrieve the data. I would like to eliminate the need to click on the "GET GROUP" button and have the selection process fire an onChange event that will submit the form so the PERL script can execute.
Although I'm perfectly capable with PERL and CGI and of course HTML, I'm very limited using JavaScript. Here is what I've tried.
function getGroup()
{form.submit(document.forms[0].elements[0].value);}
I will mention that the <OPTION>(s) of the <SELECT> tag are loaded dynamically with a PERL script. And during my testing I substituted ALERT for FORM.SUBMIT and I get the correct value, but can't seem to get it to submit the form.
Thanks in advance for any help.
UR
Currently the user selects from a list of their customers and clicks on a "GET GROUP" button which uses CGI/PERL to retrieve the data. I would like to eliminate the need to click on the "GET GROUP" button and have the selection process fire an onChange event that will submit the form so the PERL script can execute.
Although I'm perfectly capable with PERL and CGI and of course HTML, I'm very limited using JavaScript. Here is what I've tried.
function getGroup()
{form.submit(document.forms[0].elements[0].value);}
I will mention that the <OPTION>(s) of the <SELECT> tag are loaded dynamically with a PERL script. And during my testing I substituted ALERT for FORM.SUBMIT and I get the correct value, but can't seem to get it to submit the form.
Thanks in advance for any help.
UR