Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

onClick() not working !!!

746591Jan 25 2008 — edited Feb 5 2008
did 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2008
Added on Jan 25 2008
16 comments
397 views