Here are some guesses:

1.  Change the names of your submit buttons to something else instead of
"Submit".  This has caused me problems with JS confusing the Submit button
with the submit() method.  Try something like   <input type="Submit"
name="SubmitButton" value="DeleteType">  for all the buttons.

2.  change your OnCLick to onclick="document.form.submit()"> It's even a
better practice to name your form in the form tag and submit() using that
name:
 <form action="file.cfm" method="POST" name="MyWonderfulForm">
   <Select name="PT_ID" size="6"
onclick="document.MyWonderfulForm.submit()">

Hope that helps.

craig


----- Original Message -----
From: "Brian Scandale" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 3:57 AM
Subject: <form troubles


> Nothing is selected when this form loads until the user clicks inside the
select box. Then the form autosubmits via the onclick=
>
> Problem is that This form submits a form.submit="DeleteType" even though
they clicked on the select box, NOT the Submit Button.
>
> This ONLY happens on a Mac running IE
>
> I'm clueless as to why? Would appreciate any insight.
>
> Code below:
>
> -----
> <form action="file.cfm" method="POST">
>   <Select name="PT_ID" size="6" onclick="this.form.submit()">
>     <option value="1">SomeItem</option>
>     <option value="2">SomeOtherItem</option>
>   </SELECT>
>   <input type="Submit" name="Submit" value="DeleteType">
>   <input type="Submit" name="Submit" value="EditType">
>   <input type="Submit" name="Submit" value="Add Type">
> </form>
> -----
>
> Thanks to anyone with a clue,
> Brian
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to