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 Mike Lewis 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. CHRISWYA

    Default button

    I am using the below javascript to confirm a form submission and have no problems with the code. I was just wondering whether it is possible to make the default option no as it is currently defaulting to yes. An suggestions guys... function CheckSnapshot() { doyou = confirm("This procedure is...
  2. CHRISWYA

    validate time properly

    found and adjusted a solution... <script type="text/javascript"> function IsValidTime(timeStr) { var timePat = /^(\d{1,2}):(\d{2})(:(\d{2}))?(\s?(AM|am|PM|pm))?$/; var matchArray = timeStr.match(timePat); if (matchArray == null) { alert("Time is not in a valid format.Format required is...
  3. CHRISWYA

    validate time properly

    yeah ok cheers
  4. CHRISWYA

    validate time properly

    i am using the following code to validate a time field in my application, however this only checks the correct characters are used and not in the correct order. Ideally i require validation that checks that the data entered is in the following order HH:MI, any suggestions appreciated var...
  5. CHRISWYA

    Disable form element using javascript

    doesn't seem to work thanks for the advice though
  6. CHRISWYA

    Disable form element using javascript

    I think this should be a simple piece of javascript but am unsure of the correct syntax to disable a form element using javascript as i have never come across it. Any advice would be gratefully received. if(theForm.p_close_date.value!=0) { p_close_date=disabled { return false; } }
  7. CHRISWYA

    Check update values?

    Not exactly what im after but can see wht ur thinkin. What may happen in the application is that multiple users can update a record and in this example its close_date. So if a user enters an update screen and leaves it while another user enters that record and changes the close_date and...
  8. CHRISWYA

    Check update values?

    UPDATE calls SET close_date = TO_DATE(p_close_date, 'DD/MM/YYYY') WHERE calls.ID = TO_NUMBER (p_callerID); (AND...) Hi there just wondering if anyone can help me i have basically finished my application and am adding validation (etc). In my program i have many small update statements as above...
  9. CHRISWYA

    Javascript Populate field troubles

    thanks very much lads for both ur help haven't got it quite working yet but im sure with a combination of ur help all get there cheers
  10. CHRISWYA

    Javascript Populate field troubles

    Hi guys! i have encountered a bit of a problem and have been struggling to solve it with my basic javascript knowledge. What i am after is a script that when p_close_date has data is populated the script willpopulate p_close_time with the current time, although not SYSDATE as such because i dont...
  11. CHRISWYA

    Image in achor tag

    I am using the following anchor tag in TOAD and it is currently failing when it reaches the image source. Any advice of how to imbed this tag in the achor or any more general advice upon this subject would be appreciated. thanks HTP.anchor (helpdesk_lib.homepage ||...
  12. CHRISWYA

    Alter existing sort code

    Thanks alot for the advice!!
  13. CHRISWYA

    Alter existing sort code

    I was provided with this Javascript to sort my database table and struggle to follow sections of it being new to Javascript. The sort works 100% but i would like to be a ble to alter it so that the dispaly order is descending and not as it currently is ascending. If anyone could highlight the...
  14. CHRISWYA

    problems comparing two dates

    Thanks for the advice i am very new to Javascript and dont quite follow all the advice given but thanks very much for you time.
  15. CHRISWYA

    problems comparing two dates

    i am using the following javascript validation to ensure that a open date is greater than a close date. However i have just discovered that the .value check is not successfully working as it does not interpretate 01/10/04 as being greater than 28/09/04 for example. The check successfully occurs...
  16. CHRISWYA

    Comparing two dates in Javascript

    nice one that helps a lot
  17. CHRISWYA

    Comparing two dates in Javascript

    if (theForm.p_open_date.value > theForm.p_close_date.value) { alert("The close date entered is invalid"); theForm.p_close_date.focus(); return false; } } return true; } Hi there i have this javascript which checks an open_date value against a close_date value and this works fine. However...
  18. CHRISWYA

    I need to be able to have two restrictions on a value.length

    cheers for the help lads much appreciated
  19. CHRISWYA

    I need to be able to have two restrictions on a value.length

    I'm sure there must be an easy way around this problem but am currently struggling to fing the required solution. Currently i am using the syntax for javascript validation before submitting the form to enure my text area has <5 characters which is fine. if (theForm.textname.value.length <5)...

Part and Inventory Search

Back
Top