× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Disregard my e-mail, Eric Lee helped me get it working. Thanks Anyway.

-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On
Behalf Of Justin Houchin
Sent: Friday, June 28, 2002 7:27 AM
To: web400@midrange.com
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.