如何调用Javascript函数Onclick日历,点击图像时调用。 [英] How Can I Call A Javascript Function Onclick Of Calendar Which Is Called On Click Of Image.
本文介绍了如何调用Javascript函数Onclick日历,点击图像时调用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有函数调用ajax。
I have function whish calls ajax .
function calculateExpectedResignationDate() {
// var AjxInput = document.forms[0].EMP_NO.value + "," + GetCookieVal("COMPANY_MASTER_ID") + "," + GetCookieVal("LOCATION_MASTER_ID") + "," + document.forms[0].EMPLOYEE_MASTER_ID.value + "," + document.forms[0].FINAL_RLV_DATE_DD.value + "," + document.forms[0].FINAL_RLV_DATE_MM.value + "," + document.forms[0].FINAL_RLV_DATE_YY.value;
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;
// alert('1');
HRAjax.Resignation_AttendanceCheck_For_WOHD(AjxInput, LoadStates_CallBack1);
// alert('111');
}
}
}
我有一张图片,点击后会显示日历弹出窗口。
当我点击日历时
我shuold能够调用我的calculateExpectedResignationDate()函数
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>
推荐答案
这篇关于如何调用Javascript函数Onclick日历,点击图像时调用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文