|
Justin, You have to have something in your form that executes the JavaScript. Try adding "onClick=submitForm()" to your option tags. That may not work but there should be something similar. I'd like to say though, that as an end user and fellow web designer, this could be a really annoying feature since it is not typically expected that selecting a drop down option will take you someplace else. Just a thought. Joel R. Cochran Director of Internet Services VamaNet.com (800)480-8810 mailto:webmaster@vamanet.com > -----Original Message----- > From: Justin Houchin [mailto:justin@RELIATEK.COM] > Sent: Friday, June 28, 2002 8: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 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.