I have a jquery function that hooks a javascript function when my form table is created, only it seems to respond too quickly.
My function being called is:
function ValidateForm(CQID)
{
var dt=document.newDate.txtDate;
if (isDate(dt.value)==false){
dt.focus();
return false;
}
populateDateTable(dt.value, CQID);
}
This function works only when I add an empty alert(''); at the end, otherwise it falls through and does not submit the ajax request.
Within my populateDateTable() function I included the proper ready state conditionals.
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("BoxCarCapacityDates").innerHTML= xmlhttp.responseText;
}
}
Is there anything I didn't include properly?