onClick() not working !!!
746591Jan 25 2008 — edited Feb 5 2008did you finally solve this issue, I'm facing the same one, it makes no sense,
<input type="BUTTON" class="button" style="CURSOR: hand" name="OK" value="Save" tabindex="9" onclick="fnCalls();"/>
and the function
function fnCalls() {
setTheDateValues();
var check= validateTime();
if(check) {
return true;
} else {
return false;
}
}
function validateTime()
{
objTxtHour = document.forms[0].pullHour.value;
objTxtMin = document.forms[0].pullMin.value;
var d = new Date();
var curr_hour = d.getHours();
var curr_min = d.getMinutes();
if(curr_hour>objTxtHour) {
if(curr_min>objTxtMin){
return false;
}
}
}
even if it is false, the form is still processed ........
any help is appreciated !!!
TIA