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...
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...
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...
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;
}
}
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...
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...
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...
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
||...
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...
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...
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...
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)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.