×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi Everyone,

Here is the incorrect and correct source code for my problem


Here is the incorrect 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>

 Here is the corrected souce...

<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
OnChange="submitForm()">   <<<-----CORRECTED LINE
            <OPTION value="ACC" Selected>Accessories</OPTION>
            </SELECT>
            <STRONG>Sub Category: </STRONG><SELECT size=1 name=SUB>
            <OPTION value="AGP" >AGP</OPTION>
            <OPTION value="PCI" Selected >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





-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On
Behalf Of Buck Calabro
Sent: Friday, June 28, 2002 7:46 AM
To: web400@midrange.com
Subject: RE: [WEB400] JavaScript Submit Form

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

Could you post the working HTML and what the issue was?  It might help
somebody who's looking through the archives in the future.  Thanks!
  --buck
_______________________________________________
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-2026 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.