× 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.



Justin,

You probably fixed this already but I would use something like:

<select name="CAT" onchange="submitForm()">...

This will help you to send a lot less data. I would also shorten
the name of the function to sf or something similar (it really does
make a difference if you have a few dozen of these on a page).

David Morris

>>> justin@RELIATEK.COM 06/28/02 06:26AM >>>
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



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.