Hi,
I am somewhat new to developing web pages. My situation is this: I am working on a site that includes a form submission. The only validation done is client-side with an external javascript file. The validation is only to check if required fields are blank. Well, the validation works when the form is sumbitted in IE but not Netscape (using version 4 of both). IE will produce an error and alert me to which required fields I missed, Netscape will submit the form as if no validation is has done.
Here is how the validation is done (This validation is used in a similar site that I was told to followed the design of):
First of all, each form element which is required includes an attribute call "validType" which is set to "notBlank". ex. <input type="Text" name="address" label="Address" size="30" validType="notBlank">
Next, on submission of the form, a javascript function is called which loops through each element of the form and checks to see if "validType" is equal to "notBlank".
Finally, here is my question: I have searched through as much html, dhtml, javascript documentation as I can stand, and I cannot find reference to an attribute called "validType". I have come to the conclusion that this is user-defined. But I can't even find any documentation on user-defined attributes to determine if this is my browser compatibility problem. Does anyone know anything about creating your own attributes and what browsers recognize this.
Sorry if this is long and winded. Thanks in advance for your help.
Sharla
[sig][/sig]
I am somewhat new to developing web pages. My situation is this: I am working on a site that includes a form submission. The only validation done is client-side with an external javascript file. The validation is only to check if required fields are blank. Well, the validation works when the form is sumbitted in IE but not Netscape (using version 4 of both). IE will produce an error and alert me to which required fields I missed, Netscape will submit the form as if no validation is has done.
Here is how the validation is done (This validation is used in a similar site that I was told to followed the design of):
First of all, each form element which is required includes an attribute call "validType" which is set to "notBlank". ex. <input type="Text" name="address" label="Address" size="30" validType="notBlank">
Next, on submission of the form, a javascript function is called which loops through each element of the form and checks to see if "validType" is equal to "notBlank".
Finally, here is my question: I have searched through as much html, dhtml, javascript documentation as I can stand, and I cannot find reference to an attribute called "validType". I have come to the conclusion that this is user-defined. But I can't even find any documentation on user-defined attributes to determine if this is my browser compatibility problem. Does anyone know anything about creating your own attributes and what browsers recognize this.
Sorry if this is long and winded. Thanks in advance for your help.
Sharla
[sig][/sig]