hey y'all
am busy writing a form validation script and i keep coming up against this problem. Here's the sc:
function checkValidation(formID, fieldID)
{
alert(document.RequestForInformation.Title.value);
// this alerts the ACTUAL document object -
// displays correct inputted value
alert("formID : "+formID+" fieldID : "+fieldID);
// this alerts the vales of the variables that will
// be used to build the virtual document object
// this alerts with the correct values passed to the function
fieldVal = document.formID.fieldID.value;
// *this assigns the value of the virtual document object
// *to be used in other validation functions -
// *this is where i get errors - see below:
if (fieldVal){checkElementNoSpace(fieldVal);}}
// value passed to new function
*error: i get an error of "'document.formID.fieldID.value' is not an object" - anybody got any ideas? Have I got the syntax wrong?
thanx - have a good day!!

Azz
am busy writing a form validation script and i keep coming up against this problem. Here's the sc:
function checkValidation(formID, fieldID)
{
alert(document.RequestForInformation.Title.value);
// this alerts the ACTUAL document object -
// displays correct inputted value
alert("formID : "+formID+" fieldID : "+fieldID);
// this alerts the vales of the variables that will
// be used to build the virtual document object
// this alerts with the correct values passed to the function
fieldVal = document.formID.fieldID.value;
// *this assigns the value of the virtual document object
// *to be used in other validation functions -
// *this is where i get errors - see below:
if (fieldVal){checkElementNoSpace(fieldVal);}}
// value passed to new function
*error: i get an error of "'document.formID.fieldID.value' is not an object" - anybody got any ideas? Have I got the syntax wrong?
thanx - have a good day!!

Azz
Comment