Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Joe2k
  • Order by date
  1. Joe2k

    Double Clicking Submit

    Does anyone know how to prevent double clicking on a submit button? People are double clicking my submit button and there for it is sending two messages. I have never heard of a way to prevent it do you? Thanks, Joe2k
  2. Joe2k

    Double Clicking Submit Button

    Does anyone know how to prevent double clicking on a submit button? When people go to submit they double click it and there for it sends two messages. Does anyone know how to prevent this? Thanks, Joe2k
  3. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Don,<br><br>I don't know of a way for it to be done outside of JavaScript.&nbsp;&nbsp;Sorry and I know what if feels like to get a job like this done.&nbsp;&nbsp;When I got mine to work I was just playing around and tried something and got it to work.&nbsp;&nbsp;Anyway this is all I know about...
  4. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Hey Don,<br><br>Ok I think I know what is wrong.&nbsp;&nbsp;K first on the onClick function is in the wrong place.&nbsp;&nbsp;It should be here:<br><br>&lt;input type=&quot;checkbox&quot; name=&quot;Councillor2&quot; value=&quot;JMarvinHunt&quot; onClick=&quot;<br>&nbsp;&nbsp;if...
  5. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Well this script will make sure that a checkbox and a text field will be valid:<br><br>if (this.Subject.value == '')<br>{<br>alert('Please enter a title for the subject')<br>return false<br>}<br>else if (this.Message.value == '')<br>{<br>alert('Please enter a message')<br>return false<br>}<br>if...
  6. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Ok here is what I did with my validation script.&nbsp;&nbsp;I had a list of checkboxes and mulitple text field.&nbsp;&nbsp;So the script I need was to make sure that they had at least on checkbox clicked and some text in the text field.&nbsp;&nbsp;But my the sounds of it you want it so that they...
  7. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Don,<br><br>So let me get this straight you want validation for a list of checkboxes and a text field?&nbsp;&nbsp;Cause they need individual validation scripts.&nbsp;&nbsp;
  8. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Don,<br><br>I don't think you have have the onClick variable in the script I wrote.&nbsp;&nbsp;There you have to put the name of the checkbox.&nbsp;&nbsp;So in your case you would put &quot;CITY&quot;.&nbsp;&nbsp;Now that I think of it I am not sure my script will work cause all of your...
  9. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Hey Don,<br><br>Well I started this message string and I hope to stop it.&nbsp;&nbsp;I had the same problem as you.&nbsp;&nbsp;But everyone that messaged came close to making it work.&nbsp;&nbsp;So I had to just write it myself.&nbsp;&nbsp;So here is the script I use to make sure at least one of...
  10. Joe2k

    Checkbox Restrictions

    Well, that worked...sort of.&nbsp;&nbsp;See the checkbox selection was fine but the problem is that since all the checkboxes field names are all the same.&nbsp;&nbsp;When you submit it all you get is one selection even if you had mulitple selections.&nbsp;&nbsp;Does anyone know who to modifly...
  11. Joe2k

    Checkbox Restrictions

    &nbsp;&nbsp;I want it so that I you click and cetain checkbox that you can't click any other ones.&nbsp;&nbsp;For example say I click the &quot;All&quot; checkbox I don't want users to be able to click then on individual selections.&nbsp;&nbsp;And same goes for if they all ready have clicked on...
  12. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Can anyone help me?&nbsp;&nbsp;Please!
  13. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    It still does not work.&nbsp;&nbsp;Now all it does is skip all my validations.&nbsp;&nbsp;This is what it looks like now:<br><br>ONSUBMIT=&quot;<br>if (councillor1.checked)<br>{<br>return true<br>}<br>if (councillor2.checked)<br>{<br>return true<br>}<br>if (councillor3.checked)<br>{<br>return...
  14. Joe2k

    How do you validate a checkbox in a form using OnSubmit?

    Hi,<br><br>My problem is that I need a script that will make sure at least 1 of the 6 checkboxes are selected before being sent.&nbsp;&nbsp;This is the top part of the form, and I have all the other validations working except for the checkboxes.&nbsp;&nbsp;Here is what I have so...

Part and Inventory Search

Back
Top