Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
And my form looks like this:
<form action="khours.asp" method="post" name="krono_process" onsubmit="return validateKronos(this);" autocomplete="off">
Oh, one more thing -- 'autocomplete="off"' isn't validated, what is the alternative for it? This web page will be used for data entry and I do not want autocomplete to interfer their operations.
Either of these 2 statements should make the warning go away:
a) Using older, "document collections", code:
You have sent a ref to the form to the function:
Let's assume that you have this:
if( form.elements.assocID.options.selected )
b) A mixture of older and newer code
a) Write a new DTD for your document
b) Simply ignore validator warnings about this particular invalid attribute. Browsers don't validate documents anyway.
I already changed my document to conform your a. part suggestion, at least for now. I'm using Firefox, IE (all versions), Opera and lynx (paramount important) to test my application development. Warning went away except for document part.