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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by curt62

  1. curt62

    Date Validation

    That was it. Thanks much
  2. curt62

    Date Validation

    tried &quot;f.twField0.value < date2.Date&quot; and&quot;f.twField0.value < date2.DateValue&quot; No luck yet. Thanks for trying.
  3. curt62

    Date Validation

    I am attempting to validate that a date entered in child form falls within a week ending date in a parent form. My alert works for the second part of the evaluation but not the first part. In other words, I get the alert if the date is greater than...
  4. curt62

    confirm on browser window close

    I am looking for a way to throw a confirm to save changes when a user attempts to close a browser window by hitting the X. I don't think I can use the unload event because that triggers when users navigate away as well as close the window. Any ideas?
  5. curt62

    Time Validation

    Duh I neglected to subsitute fromTime = document.forms[0].twField0.value toTime = document.forms[0].twField4.value for your values fromTime = &quot;12:00 PM&quot; toTime = &quot;12:00 AM&quot; Thanks for your patience..
  6. curt62

    Time Validation

    This is what I get.... From Time: 11:59 PM To Time: 03:00 AM Millisecs:-75540000 Shift cannot span Midnight From Time: 01:15 AM To Time: 03:15 PM Millisecs:50400000 This block of time is longer than twelve hours! Choosing OK will allow you to continue. From Time: 03:55 PM To Time: 12:00 AM...
  7. curt62

    Time Validation

    Tried it...it returns a box that shows the date and time first, click ok and and then another alert OK. Problem is it appears to OK everything now. good and bad entries alike.:-(
  8. curt62

    Time Validation

    Did what you said but still throws the alert. Here is the code. Can you see my problem. I appreciate any light you can shed. function twValidateRecord(intThisRecord) { if (window.document.forms[0].twField0.value.length==0) {alert(&quot;Date cannot be empty&quot;); return false;}; if...
  9. curt62

    Time Validation

    mwolf00 your code is working for the most part however,I have a small problem. I need users to be able to select 12:00 AM as an end time to the shift. right now it throws the alert. I attempted to modify your if statement to allow 12:00 AM as an end time but it won't work for me if ((diff <...
  10. curt62

    Time Validation

    You da man...thanks
  11. curt62

    Time Validation

    jemminger that is a nice bit of coding there but it will still allow for a start time to be say 11:30 AM and the end time to be 12:30 AM. This would also span midnight but would not be caught. This is a time sheet application and I have to cover all my bases or the users will surely mess it up.
  12. curt62

    Time Validation

    I have a Javascript validation routine that runs on a Domino web form. I need two more validations done that are giving me trouble. Here is the situation Start Time is entered in this field =&quot;twField0&quot; End Time is entered in this field = &quot;twField4&quot; Times are entered in...

Part and Inventory Search

Back
Top