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 Chris Miller 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: *

  1. taz6053

    validate date

    Is there a way for the javascript to know what field name triggered the function. I would like to keep this nonspecific so that I can use the same function for more than one textfield on the same form.
  2. taz6053

    validate date

    Thanks that helped. One last thing (I hope). How would I set the form field back to blank when they enter an incorrect date format?
  3. taz6053

    validate date

    Are you talking about 3 seperate drop down boxes? That really isn't feasible in this situation.
  4. taz6053

    validate date

    Below is what I have so far. The problem is that even though I get a return of 'true', I am still getting that the date is not valid. I also need to be able to use a date in the format of 1/2 and have the script reformat it to 1/2/2007. Thanks again for your help. //validate date field...
  5. taz6053

    validate date

    Can anyone show me a simple way to validate a date textfield in a form. Thanks
  6. taz6053

    dynamic form field names

    Thanks again. I had tried changing that but wasn't sure what to change it to. Below is what I ended up with and it is working. <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function s(num) { amount = num * 1; // amount is the num or NaN if (isNaN(amount)) { // if the entire is not a number...
  7. taz6053

    dynamic form field names

    var myForm = document.getElementById("myFormID"); I copied the code exactly from what you wrote above.
  8. taz6053

    dynamic form field names

    Thanks for your help but I am getting an error the error 'null' is null or not an object. By prcess of elimination the line getting this error is var allAmounts = myForm.getElementsByTagName("input");
  9. taz6053

    dynamic form field names

    I have a form with textfields that are dynamically created and named from a recordset. There are 2 textfields created by each record Ex. sAccountId1, sAmount1 and are incremented based on the number of records. The record count is stored in another textfield. I need to use javascript to add...

Part and Inventory Search

Back
Top