You should be able to do all your client side checking using DOM access
methods. The name attribute in form is no longer needed nor desirable.

Rough example

<input type="text" id="name" value="" name="Name"/>

if ( document.getElementById("name") == "" )
{
        alert("Please enter a name");
}

Cheers
Chris

On Mon, 2004-05-24 at 11:26, robert e. lee wrote:
> I have had a form up for a long time and it vallidates as xhtml 1.0 
> transitional. But I have to wonder why it is that I can't get that last 
> error fixed so it is strict...
> 
> I have a name attribute in the form tag, but I need it there due to the 
> javascript validations necessary for client side checking, 
> "name=surveyform".
> 
> I tried looking into the W3C specs for xhtml and tried alternatives like 
> "id" but in the end gave up. So out of curiosity, what should I have used 
> for this purpose?
> 
> Thanx in advance for any input.
> 
> _________________________________________________________________
> Get Extra Storage in 10MB, 25MB, 50MB and 100MB options now! Go to  
> http://join.msn.com/?pgmarket=en-au&page=hotmail/es2
> 
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> ***************************************************** 
> 
> 
> 

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to