Hi,
I'm getting the above error when I try to call the function listed below onSubmit.
The function is:
function check(){
validateCheckbox();
validatef_819();
if(isStillLoading()) return false;
var cumparams = "";
for(j=0;j<document.forms.length;j++) {
var currform = document.forms[j];
for(i=0;i<currform.elements.length;i++) {
if(currform.elements[i].value!="null" && currform.elements[i].value!="" && leftString(currform.elements[i].name,2)=="f_"){
if(currform.elements[i].type=="select-one"){
cumparams += currform.elements[i].name+"="+currform.elements[i].options[currform.elements[i].selectedIndex].value+"|";
}
else if(currform.elements[i].type=="radio"){
if(currform.elements[i].checked)
cumparams += currform.elements[i].name+"="+currform.elements[i].value+"|";
}
else
cumparams += currform.elements[i].name+"="+currform.elements[i].value+"|";
}
}
}
for(j=0;j<document.forms.length;j++) {
document.forms[j].c_retain_form.value = cumparams;
//alert( "c_retain_form"+document.forms[j]+"="+document.forms[j].c_retain_form.value);
}
return (true);
}
and I'm calling the above function in the reference given below:
<form name=log action=dispatcher method=post onSubmit="return check()">
I've implemented the above in a jsp, which has 3 forms.
I tried to remove this funtion and tried accessing the page again, but still this error shows up.
Could anyone pls. help me solve this problem.
Thanks,
Shashi