| 
 | 
here you go....
---------------------- Forwarded by Eric Lee/CIEL on 28/06/2002 13:51 
---------------------------
From: Eric Lee on 28/06/2002 14:38
To:   justin@reliatek.com
cc:
Subject:  Re: [WEB400] JavaScript Submit Form
sorry, forgot to mention this should be in the select tag...
<SELECT size=1 name=CAT OnChange="submitForm()">
<OPTION value="ACC" Selected >Accessories</OPTION>
</SELECT>
---------------------- Forwarded by Eric Lee/CIEL on 28/06/2002 13:36 
---------------------------
From: Eric Lee on 28/06/2002 14:35
To:   justin@reliatek.com
cc:
Subject:  Re: [WEB400] JavaScript Submit Form  (Document link: Eric Lee)
Try
OnChange="submitForm()"
"Justin Houchin" <justin@RELIATEK.COM>@midrange.com on 28/06/2002 13:26:45
Please respond to web400@midrange.com
Sent by:  web400-admin@midrange.com
To:   <web400@midrange.com>
cc:
Subject:  [WEB400] JavaScript Submit Form
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hi Everyone,
            I am trying to automatically submit a form when a user makes
a selection form a list. I can't seem to get it working. Please help!!!!
Here is the source...
<html>
            <head>
                        <title>Item Maintenance</title>
            </head>
<body>
<script language="JavaScript">
<!--
function submitForm()
{
            document.form1.submit();
}
//-->
</script>
<form name="form1" method="post" action="/cgi-bin/itemmaint">
            <P><STRONG>Category: </STRONG><SELECT size=1 name=CAT>
            <OPTION value="ACC" Selected
"OnClick:submitForm()">Accessories</OPTION>
            </SELECT>
            <STRONG>Sub Category: </STRONG><SELECT size=1 name=SUB>
            <OPTION value="AGP" Selected
"OnClick:submitForm()">AGP</OPTION>
            <OPTION value="PCI" Selected
"OnClick:submitForm()">PCI</OPTION>
            </SELECT>
            <input type="submit" name="Submit" value="Update List">
            </form>
<A href=""> Back to Item Maintenance Main Menu</A> </P>
</body>
</html>
Justin Houchin
Programmer and Web Developer
ReliaTek, Inc
justin@reliatek.com
--
_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.