I have function whish calls ajax .
function calculateExpectedResignationDate() {
if (document.forms[0].ERD_WOHD_ALLOW.value == "Y") {
if (document.forms[0].EMP_NO.value == "") {
alert('Please Select Employee');
return false;
}
else {
AjxInput = document.forms[0].EMP_NO.value + "," + document.forms[0].RESIG_LTR_DD.value + "," + document.forms[0].RESIG_LTR_MM.value + "," + document.forms[0].RESIG_LTR_YY.value + "," + document.forms[0].ERD_WOHD_ALLOW.value + "," + document.forms[0].ERP_UI_ID.value + "," + document.forms[0].EMPLOYEE_MASTER_ID.value + "," + document.forms[0].NOTICE_PERIOD.value;
HRAjax.Resignation_AttendanceCheck_For_WOHD(AjxInput, LoadStates_CallBack1);
}
}
}
I have an image which on click shows a calendar popup.
when i click on calendar i shuold be able to call my calculateExpectedResignationDate() function
<td> <asp:textbox id="RESIG_LTR_DD" onkeypress="return IntCheck();" onkeyup='return Date_OnKeyUp("RESIG_LTR_DD","RESIG_LTR_MM");' runat="server" CssClass="TextBox_BorderDDMM" maxlength="2" SIZE="2">
<asp:textbox id="RESIG_LTR_MM" onkeypress="return IntCheck();" onkeyup='return Date_OnKeyUp("RESIG_LTR_MM","RESIG_LTR_YY");' runat="server" CssClass="TextBox_BorderDDMM" maxlength="2" SIZE="2">
<asp:textbox id="RESIG_LTR_YY" onkeypress="return IntCheck();" onblur="return calculateExpectedResignationDate();" runat="server" CssClass="TextBox_BorderYY" maxlength="4" SIZE="4"><IMG language=javascript onmousemove='return displayhand_onmousemove("RESIG_LTR_DATE_POPUP")' id="RESIG_LTR_DATE_POPUP" önclick="popUpCalendar(RESIG_LTR_DD,RESIG_LTR_MM,RESIG_LTR_YY,'yes');" src="..\images\desc.gif" border=0 >
</td>