Re: [WSG] naming a form so it validates?

2004-05-24 Thread Kristof Neirynck
robert e. lee wrote: 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. 1. change name=surveyform to id=surveyform 2. change document.forms[surveyform] to document.getElementById(surveyform) Easy

[WSG] naming a form so it validates?

2004-05-23 Thread robert e. lee
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

Re: [WSG] naming a form so it validates?

2004-05-23 Thread Chris Blown
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

Re: [WSG] naming a form so it validates?

2004-05-23 Thread Chris Blown
Ooops, that should of been ;) if ( document.getElementById(name).value == ) { alert(Please enter a name); } 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