error in ValidatorEnable
-
i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy
-
i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy
-
Hi Apurva, i can't understand your question. i declare those functions(valEnb(),valDis()) in the same aspx file where i call it. Thanks for your reply Thomas joy
-
Hi Apurva, i can't understand your question. i declare those functions(valEnb(),valDis()) in the same aspx file where i call it. Thanks for your reply Thomas joy
-
No what i was asking is have you included ValidatorEnable (what i suppose is, this is a user defined function and needs to be included in the page in order to use them.) funtion in your page. Best Regards, Apurva Kaushal
Hi apurva, I think ValidatorEnable is a system defined function and there is no need for declare it. this code will works fine in local mechine, but when i uploaded it into the sever it shows those errors Thanks Thomas joy
-
Hi apurva, I think ValidatorEnable is a system defined function and there is no need for declare it. this code will works fine in local mechine, but when i uploaded it into the sever it shows those errors Thanks Thomas joy
-
i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy
Hi Thomas, As far as I know,"ValidatorEnable" is a function defined in the "WebUIValidation.js" file which is present in the C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322 folder... Try copying aspnet_client folder to the root of your website...Your application is probably not able to find the required file. --Dimple
-
Sorry to misunderstood your problem. Is this "aspnet_client" folder available in the root of the website. Best Regards, Apurva Kaushal
Hi apurva, No need for sorry i always thanks for your reply. yes the aspnet_client folder is there. Thomsas joy
-
i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy
Hi friends, Thanks for your great help. Now it works fine. Thomas joy