R
Randell D.
Folks,
I have written some scripting tools that are compatable with alot of my
pages - For example, I've created a script that will check to ensure
certain form fields that require data, are completed. In order for this
to work, I must pass it the form name, and the field names (input tag
names).
Sometimes I copy/paste the syntax from one page to another and I might
forget to change the form name, or an input tag name passed in the
function call with the result that I get a message in the Mozilla js
console about an object with no properties.
Can I have my scripts test for this? Can I test, for example, if
document.forms[formName] exists, where formName is a variable? If so,
what would be the best method for me to test for this?
Thanks... replies via ng so that all can learn... is greatly appreciated,
randelld
I have written some scripting tools that are compatable with alot of my
pages - For example, I've created a script that will check to ensure
certain form fields that require data, are completed. In order for this
to work, I must pass it the form name, and the field names (input tag
names).
Sometimes I copy/paste the syntax from one page to another and I might
forget to change the form name, or an input tag name passed in the
function call with the result that I get a message in the Mozilla js
console about an object with no properties.
Can I have my scripts test for this? Can I test, for example, if
document.forms[formName] exists, where formName is a variable? If so,
what would be the best method for me to test for this?
Thanks... replies via ng so that all can learn... is greatly appreciated,
randelld